标签归档:selinux

cannot restore segment prot after reloc: Permission denied

Cent OS 5.4 32Bit

Apache/2.2.15 (Unix) PHP/5.3.2

[root@localhost src]# /usr/local/apache/bin/apachectl start
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

# chcon -t texrel_shlib_t /usr/local/apache/modules/libp

可以解决以上权限问题提示,主要原因在于系统启用了selinux

可以禁用尝试禁用selinux,另外PHP/5.3.2目前版本的ZendOptimizer皆无法使用