16 February 2010

ลง php ใน ubuntu แล้ว restart Apache ไม่ได้

นั่งลง php ใน ubuntu พอลงเสร็จอ๊ะ มันยัง run php ไม่ได้เลยจะ restart ดันเจอข้อความ

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

อะจึ๋ย.... ลืมตั้งค่าอะไรไปหว่า ค้นๆไป แต่ไม่ได้จำไว้แหะ ว่าเว็บไหนบอกให้แก้ไฟล์ /etc/hosts จาก

127.0.0.1 localhost
127.0.1.1 ubuntu

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

แล้วเพิ่มข้อมูลเป็น

127.0.0.1 localhost.local localhost
127.0.1.1 ubuntu.local ubuntu

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

พอ restart apache อีกทีก็ผ่านฉลุย ^0^

0 comments:

Post a Comment