XAMPP 配置为端口 8080 和主机文件(和 WordPress-mu 安装)问题 [英] XAMPP when configured to port 8080 and hosts file (and WordPress-mu install) issue

查看:26
本文介绍了XAMPP 配置为端口 8080 和主机文件(和 WordPress-mu 安装)问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 WordPress MU 中安装 WordPress MUhttp://en.wikipedia.org/wiki/XAMPP" rel="noreferrer">XAMPP 本地服务器(配置为端口 8080).

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

在浏览器中使用这个地址 >>http://localhost:8080/wordpress-mu/<<获得此响应 >>WPMU 仅在 URL 中没有端口号的情况下才有效.<<

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

这是我的主机文件中的最后一行:127.0.0.1 localhost.localdomain

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

(这指向我的 IIS7 localhost 服务器而不是我的 XAMPP 本地主机)

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

我猜我需要在这个主机文件中添加另一个条目来为 XAMPP 和 WordPress MU 配置它,但我不确定它应该是什么?

I am guessing I need to add another entry in this hosts file to configure this for XAMPP and WordPress MU but am not sure what it should be?

推荐答案

您是否在使用 IIS?

Are you using IIS at all?

如果没有,只需停止服务器并将您的 XAMPP 指向端口 80.

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

如果是,您可以反向,只需打开默认网站属性,然后在网站绑定中将 80 更改为 8080.

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

在您的 XAMPP 安装中,将端口更改为 80:

In your XAMPP instalation change the port to 80:

  • 打开 C:\XAMPP\APACHE\httpd.conf
  • 搜索 Listen(默认安装,第 47 行)
  • 更改端口
  • 重启 Apache

这篇关于XAMPP 配置为端口 8080 和主机文件(和 WordPress-mu 安装)问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆