วันศุกร์ที่ 17 พฤษภาคม พ.ศ. 2556

appserv 2.5.10 บน OS Windows 7 (64 bit) แล้วเข้า localhost ไม่ได้

1.ลองตรวจสอบ ว่า service apache start หรือไม่ครับ
ถ้า start ปกติ ลองเรียกเป็นแบบ ip ดูว่าได้หรือไม่นะครับ. http://127.0.0.1
ลองตรวจสอบเรื่อง program ที่ใช้งาน ว่ามีการใช้งานบน port 80 อยู่แล้วหรือไม่
เช่นพวก iis หรือตรวจสอบที่เครื่อง app server ว่ามีการลง firewall หรือ av ที่มี firewall
ไป block หรือไม่ครับ

2.ปกติแล้ว Windows 7 นั้นจะไม่ได้เปิด ให้ใช้ localhost ไว้ที่ host file หน่ะครับ เราต้องไปเอา comment ออกก่อน เข้าไปเชค DocumentRoot ที่ไฟล์ config ของ Apache ดู

C:\AppServ\Apache2.2\conf\httpd.conf

ว่าอยู่ที่ C:/AppServ/www
และเชค ServerName


#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/AppServ/www"


 


ปล.ถ้าไม่ได้จริงๆ  โทรหาผม วีระพงษ์ 086-6451435

ไม่มีความคิดเห็น:

แสดงความคิดเห็น