(13)Permission denied with apache on centos

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

(13)Permission denied with apache on centos

文章 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
回覆文章

回到「CentOS」