Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have disabled selinux with:

setenforce 0 

in /etc/selinux/config Does anyone knows if i have to label or chcon any dir to solve that error:

error [error] [client] (13)Permission denied: access to /index.php denied  

I'm running centOS6.

share|improve this question

migrated from Nov 7 '11 at 10:27

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

Check file and directory permissions of this file and all parent directories. They need to typically be world readable.

Often times this happens if you put some files in a home directory, but the home dir is still at it's default of 700. Run chmod 755 /home/you to correct that.

share|improve this answer
thanks a lot :) – user846226 Aug 5 '11 at 17:06

The code below might help you. Had the same problem with SELinux:

chcon -Rv --type=httpd_sys_content_t /you_virtual_host_direcory
share|improve this answer
this won't help as SELinux IS disabled – alexus Jan 16 '13 at 17:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.