1 頁 (共 1 頁)

(13)Permission denied with apache on centos

發表於 : 2014-08-18 13:33:20
yehlu
http://stackoverflow.com/questions/2318 ... www-backup

The most straight way (reboot required): vim /etc/selinux/config (RedHat/CentOS), and set

SELINUX=disabled
and reboot. Or keep the selinux with a warning msg (reboot needed still), vim selinux config, and set

SELINUX=permissive
Or an immediate command would be (temporary effect):

echo 0 > /selinux/enforce
# echo 1 > /selinux/enforce (put selinux back)
I choose to give the web files a pass and leave selinux on:

chcon -Rv --type=httpd_sys_content_t /var/www
If a Ghost blogging platform (blog.si.te) is running, an extra line may be needed:

setsebool -P httpd_can_network_connect 1