Page 1 of 1

AH00035: access to /index.php denied

Posted: Sat May 12, 2018 6:43 pm
by jamest
Hi,

I was trying to setup wordpress on my server. I installed LAMP and then installed wordpress. But I am not able to load index page on my browser. Browser shows that it is a permission issue. Below pasted is the error that I am getting.

AH00035: access to /index.php denied (filesystem path '/var/www/html/index.php') because search permissions are missing on a component of the path

The permissions I gave is apache:nobody for www/html/ and 644 to index.php. Still I am getting permission error. Could you find me a solution to this?

Re: AH00035: access to /index.php denied

Posted: Sat May 12, 2018 6:46 pm
by sachin
The issue that you are facing might be due to selinux.

Try the following commands

#getenforce

If it is in Enforcing mode, then

#setenforce 0

Restart httpd service (#service httpd restart)

This might fix your issue.

Re: AH00035: access to /index.php denied

Posted: Sat May 12, 2018 7:09 pm
by jamest
Hi Sachin,

It worked for me. Thank you so much.