httpd: Syntax error on line 104 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
----------------
The problem is caused by the security system - selinux, blocking it's access to libph5.so.
chcon -t texrel_shlib_t /usr/local/apache/modules/libphp5.so
This is the magic line of the code, change the path so it points to the directory where you've installed apache2 if necessary.
CentOS apache php
最新推荐文章于 2025-02-10 21:39:22 发布
