Apache Permission Denied
On a newly installed Apache server, when I visit the website, I get permission denied error. On Apache error log (/var/log/httpd/error_log), i found
1 2 3 4 5 |
# tail -f /var/log/httpd/error_log [Sat Mar 29 16:29:22 2014] [error] [client 59.98.136.37] (13)Permission denied: access to /index.html denied [Sat Mar 29 16:29:25 2014] [error] [client 59.98.136.37] (13)Permission denied: access to /index.html denied [Sat Mar 29 16:29:31 2014] [error] [client 59.98.136.37] (13)Permission denied: access to /index.html denied [Sat Mar 29 16:29:34 2014] [error] [client 59.98.136.37] (13)Permission denied: access to /index.html denied |
I tried changing the folder permission to 755, but it did not fix it. The problem was caused by SELinux.
Solution
I disabled SELinux.
1 |
setenforce 0 |
To make it permanent, edit file /etc/selinux/config, set
1 |
SELINUX=disabled |
See Apache