Wednesday, April 23, 2008

EasyPHP IP problem

在剛安裝完成 EasyPHP1.8時.. 請進安裝目錄下的Apache Folder 中找 httpd.conf <--- 這個檔案, 其中有一段如下:


# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the
# directive.
#
#Listen 3000
#Listen 12.34.56.78:80
Listen 127.0.0.1:80 <-- 改成 Listen:80 (把127.0.0.1拿掉)
存檔重新Restart your EasyPHP 就可以了...


因為這裡的設定已經強制為 127.0.0.1 聽 80埠.
所以你打 http://localhost/ 或是 http://127.0.0.1/是可以的
但是打你的IP是不行的.. 你試著拿掉試試看. 我想應該就可以了. (記得先停止你的 IIS). 一般我裝安Apache 時的預設值是 Listen:80, 可是 EasyPHP1.8 是 Listen 127.0.0.1:80
所以別人永遠連不上你,你也無法打自己的IP 連自己.

No comments: