apache重启服务失败错误 : Starting httpd: Warning: DocumentRoot [/home/coob/public_html] does not exist Syntax error on line 2801 of /etc/httpd/conf/httpd.conf: can't get fastcgi file info: /home/coob/fcgi-bin/php5.fcgi(/home/coob/fcgi-bin/php5.fcgi), errno: 2 [FAILED]
这种错误的出现,通常是删除了虚拟主机不彻底,apache配置文件中还残留对应的配置文件没有删除。这种情况需要在apache配置文件中找到它,然后删除掉。建议先备份 httpd.conf 文件
[root@host507 conf]# cp httpd.conf httpd.conf.bak3
[root@host507 conf]# pwd
/etc/httpd/conf
在apache配置文件中找到它,然后删除掉
search-domain.png
delete-domain-from-httpd-conf.png