Apache ดับ

เพราะ Vhost มี ที่อยู่ของ rootdoc ของบางเวบที่ลบไปแล้ว  ทำให้เน่ารันไม่ขึ้น

/etc/init.d/apache2 start
Starting web server: apache2Warning: DocumentRoot [/var/www/web1/web] does not exist
Warning: DocumentRoot [/var/www/web19/web] does not exist
failed!

วิธีแก้
1) Make a backup of /etc/apache2/vhosts/Vhosts_ispconfig.conf
2) Rename the latest file /etc/apache2/vhosts/Vhosts_ispconfig.conf_…. that has a date appended to /etc/apache2/vhosts/Vhosts_ispconfig.conf
3) run

apache2ctl –t  ทดสอบ vhost

แก้ตามอาการ เอา suPHP_Config ในเวบที่ลบไปแล้วออก สั่งเทสใหม่ เทสผ่าน รัน apache2

/etc/init.d/apache2 start

ลอกมาจาก

สาเหตุ ลบเวบไซต์ออกไป 2 เป็นเวบที่เคยใส่ค่า suConfig ไว้ เวลาลบเวบไซต์ใน cp มันยังเหลือค่าใน vhost

cp ลบไม่ทัน หรือทะลึ่งลบเร็วเกินไปหว่า – -

  1. No comments yet.

  1. No trackbacks yet.