Tag: 智能喵居

EasyPHP局域网内其他用户不能访问我的页面

做智能喵居的时候,需要用到PHP,一直都用的是EasyPHP开发。结果当我测试本机PHP与局域网内另一台机器通过socket通信的时候,发现另外一台机器怎么也访问不了我的PHP页面。 Google以后发现是配置问题,在 “你的EasyPHP目录/conf_files/httpd.conf” 文件的第62行(我的是EasyPHP 12.1,其他版本你搜索Listen关键字定位即可),你会发现他在这里指定监听端口号的时候,把IP地址也指定成了127.0.0.1,原话如下。   # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the <VirtualHost> # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. […]