php - XAMPP, using port:81, cannot run localhost:81/mywebsite -


xampp's default port:80 occupied system.exe, have switch port:81, question suggested xampp port 80 busy / easyphp error in apache configuration file:

after change, can access localhost:81/xampp , localhost:81/phpmyadmin , local files, localhost:81/wordpress/readme.html

however, can not load other local directories in htdocs, can not install new wordpress site on computer, , localhost:81/wordpress auto referred localhost/wordpress , not found

here's list of tried , failed

  1. change localhost options locahost:81, in c:\xampp\apache\conf\http.conf , in c:\xampp\xampp-control.ini , in mysql database, database tables, root user, in wordpress wp-config-sample.php , wp-config.php

  2. i load localhost:81\wordpress in chrome , auto referred localhost\wordpress , result not found.

so can not access localhost:81/mywebsite because auto referred old localhost , , can not stop system.exe using port:80. searched every where, solution found mistyped mistake in wp-config.php - not problem.

plese help.

try specifying port number in virtual host configuration. hence can avoid typing port number in url. add these lines c:/xampp/apache/config/extra/httpd-vhosts.conf

namevirtualhost *:81     <virtualhost *:81>         servername test.com         documentroot "c:/xampp/htdocs"          <directory "c:/xampp/htdocs">             allowoverride             order allow,deny             allow         </directory>     </virtualhost> 

edit c:\windows\system32\drivers\etc\hosts , add

127.0.0.1    test.com 

at end of file. restart apache. clear browser cache , point test.com.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -