libphp5.so: cannot restore segment prot after reloc: Permission denied

    libphp5.so: cannot restore segment prot after reloc: Permission denied
转自:http://hudeyong926.iteye.com/blog/1063470
如果在启动或者重启apache时候,出现以下信息:
[root@miix htdocs]# apachectl -k restart
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
这是由于selinux引起的,使用 chcon 指令改 libphp(4 | 5).so 預設的安全性政策。所以需要这样一下:
[root@GR00 root]# chcon -t texrel_shlib_t /usr/local/webserver/apache2/modules/libphp5.so
分享到QQ空间

Comments are closed.