http://localhost/无法与EasyPHP一起使用

http://localhost/无法与EasyPHP一起使用

问题描述:

我已经验证了windows/system32/drivers/etc/中的主机文件中是否包含localhost的条目,但是没有任何地方.我必须在URL中有一个端口号: http://127.0.0.1:8888/

I've verified my host file in windows/system32/drivers/etc/ has an entry for localhost in it, but it's not going anywhere. I have to have a port number in the URL: http://127.0.0.1:8888/

有什么我需要做的才能使localhost工作而不需要端口号吗?

Is there anything I can do to get localhost working without the need for a port number?

您的EasyPHP可能已配置为侦听端口8888.

Your EasyPHP is probably configured to listen on port 8888.

您还必须将EasyPHP配置为也监听端口80.

You must configure EasyPHP to listen on port 80 as well.

为了提供信息,HTTP的默认端口是端口80,因此当您在url中未提供任何端口信息时,浏览器将尝试在端口80上进行连接.

For your information, the default port for HTTP is the port 80, so when you don't give any port information in the url, your browser is trying to connect on port 80.

您可以按照本教程操作: http://technology .ohmygoh.com/easyphp-how-to-to-change-apache-server-port/

You can follow this tutorial : http://technology.ohmygoh.com/easyphp-how-to-change-apache-server-port/