글 수 367
libphp4.so: cannot restore segment prot after reloc: Permission denied
조회 수 23577 추천 수 0 2011.02.07 19:05:42[root@localhost libexec]# /usr/local/apache/bin/apachectl configtest
Syntax error on line 224 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot restore segment prot after reloc: Permission denied
이런 황당한 에러는... 아래와 같이 하면 해결됨.
[root@localhost libexec]# restorecon -R -v /usr/local/apache/libexec
또는
[root@localhost libexec]# chcon -t texrel_shlib_t /usr/local/apache/modules/libphp4.so