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
# 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.
setenforce 0
To make it permanent, edit file /etc/selinux/config, set
SELINUX=disabled
See Apache
Leave a Reply