开发者

XAMPP when configured to port 8080 and hosts file (and WordPress-mu install) issue

开发者 https://www.devze.com 2022-12-22 08:41 出处:网络
I am trying to install WordPress MU in my XAMPP localhost server (that is configured to port 8080). Using this address in the browser >>http://localhost:8080/wordpress-mu/<<

I am trying to install WordPress MU in my XAMPP localhost server (that is configured to port 8080).

Using this address in the browser >>http://localhost:8080/wordpress-mu/<< gets this response >>WPMU only works without the port number in the URL.<<

This is the last line in my hosts file: 127.0.0.1 localhost.localdomain

(This points to my IIS7 localhost server not to my XAMPP local host)

I am guessing I need to add another entry in this hosts file to con开发者_JAVA技巧figure this for XAMPP and WordPress MU but am not sure what it should be?


Are you using IIS at all?

If not, just Stop the Server and point your XAMPP to port 80.

If you are, you can do the reverse, just open Default Website properties and in the Website Bindings just change 80 to 8080.

In your XAMPP instalation change the port to 80:

  • Open C:\XAMPP\APACHE\httpd.conf
  • Search for Listen (default instalation, on line 47)
  • Change the port
  • Restart Apache


You can make apache from xampp use port 80 (wich is the default port for http).
* Edit httpd.conf and change the line Listen 8080 to Listen 80
* Make sure there is no other service listening on port 80
* Restart Apache
* Browse to http://localhost/wordpress-mu/

If you cannot for some reason use port 80 for apache try with mod_rewrite
* make sure that the line LoadModule rewrite_module modules/mod_rewrite.so in httpd.conf exsists and is not commented
* in your htdocs folder make a .htaccess file and write in it the following:

RewriteEngine on
RewriteRule ^:8080/(.*)$ /$1 [L]


OK this reply is to update this with my fix (problem resolved). I did change the ports-so I put Xampp back to its default port 80 & changed IIS7 from its default port80 to port 8080. This allows me now to install & run WPMU in Xampp (it does not run in IIS7-still an issue with the address & I don't really fully understand why I cannot run WPMU in IIS7 but at least I can run it through Xampp now). Thanks for all your help-best wishes to all

0

精彩评论

暂无评论...
验证码 换一张
取 消