CentOS 5.3下重启apache 失败1

[root@kaipan ~]# /usr/local/apache/bin/apachectl restart
httpd: Syntax error on line 110 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



解决办法:
1、关闭SELINUX的方法:
      # vi /etc/selinux/config
          将 SELINUX 的值改成 disabled , 即: SELINUX=disabled

2、不关闭SELINUX的方法:
      # setenforce 0
      # chcon -c -v -R -u system_u -r object_r -t             textrel_shlib_t /usr/local/apache/modules/libphp5.so
      # service httpd restart
      # setenforce 1






猜你喜欢

转载自morgan363.iteye.com/blog/775413