lamp架构apache2和php整合时报错

动态链接库加载出错cannot restore segment prot after reloc: Permission denied
做lamp启动apache2时报错如下:
 
[root@bogon modules]# /etc/init.d/httpdd start
httpd: Syntax error on line 55 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的问题,需要关闭SELINUX,执行:/usr/sbin/setenforce 0
 

你可能感兴趣的:(Permission,lamp,denied,apapche,apapche2+php)