重启apache时的状况

httpd: Syntax error on line 98 of /usr/local/ooopic/apache/conf/httpd.conf: Cannot load /usr/local/ooopic/apache/modules/libphp5.so into server: /usr/local/ooopic/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
怎么办求解!

作者: jinlongcui   发布时间: 2011-10-22

/usr/local/ooopic/apache/modules/libphp5.so into server: /usr/local/ooopic/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
httpd.conf文件中加载的模块出现问题。你可以试下该解决方法
编辑/etc/selinux/config,

SELINUX=enforcing

把 SELINUX=enforcing 改成 SELINUX=disabled

执行以下
chcon -t texrel_shlib_t /usr/local/ooopic/apache/modules/libphp5.so

重启服务,OK

[ 本帖最后由 qingwang 于 2011-10-25 16:33 编辑 ]

作者: qingwang   发布时间: 2011-10-25