apacheで「Cannot load /usr/local/apache2/modules/libphp5.so」の解決方法
1.エラーメッセージ:
httpd: Syntax error on line 54 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
2.対応対策
方法1
selinuxを設定
chcon -t texrel_shlib_t /usr/local/apache2/modules/libphp5.so
方法2
selinuxを無効にする
vi /etc/selinux/config
設定:
SELINUX=disabled