Article ID: 113376, created on Dec 23, 2013, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix

问题

Httpd 服务无法启动/重启,并出现以下错误:

httpd:Syntax error on line 221 of /etc/httpd/conf/httpd.conf:Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf:Syntax error on line 91 of /usr/local/psa/admin/conf/generated/13289086960.07411300_server.include:Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf:Could not open configuration file /var/www/vhosts/islandsnow.ca/conf/13275227850.97707600_httpd_ip_default.include:Permission denied

解决方案

selinux 的状态应为禁用许可:
 
[root@server bin]# getenforce
Enforcing


切换 SELinux 为许可模式并查看问题是否已解决:

[root@server bin]# setenforce 0
[root@server bin]# getenforce
Permissive


要永久在服务器上禁用 SELinux,请根据该文章中的说明操作: #115626.

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article