将/var/sysconfig/selinux里面的SELINUX=enforcing改成SELINUX=disabled
重启服务器后生效
方法二:把selinux禁止apache的保护.
确定selinux里的SELINUXTYPE=targeted后再执行
setsebool -P httpd_disable_trans 1
重启apache后生效
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com