linux httpd apache程序启动出错
root@ip-133-101-168-192conf]#servicehttpdrestartStoppinghttpd:
Startinghttpd:httpd:Couldnotopenconfigurationfile/etc/httpd/conf/httpd.conf:Permissiondenied
#httpd-f/etc/httpd/conf/httpd.conf-t
SyntaxOK
#chcon-thttpd_config_thttpd.conf
#ls-Z
-rwxrwxrwxapacheapacheroot:object_r:httpd_config_thttpd.conf
-rwxrwxrwxapacheapachesystem_u:object_r:httpd_config_thttpd.conf.bak
-rwxrwxrwxapacheapachesystem_u:object_r:httpd_config_tmagic
#servicehttpdrestart
Stoppinghttpd:
Startinghttpd:
在这里有一个问题,如果你的系统安装了SELinux模块,那么由于安全控制的原因,会出现如下错误:
Startinghttpd:Syntaxerroronline191of/etc/httpd/conf/httpd.conf:
Cannotload/etc/httpd/modules/libphp5.sointoserver:libxml2.so.2:failedtomapsegmentfromsharedobject:Permissiondenied
vi/etc/selinux/config
SELINUX=disabled或setenforce0
页:
[1]