Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 a MediaWiki installation running under Apache. I've found a problem with file access and after some research, I've found the problem is file system permissions.

If my uploads directory has the permission 755 everything works ok, but if I change the permissions to 744, then I'm unable to access to this file folder (Forbidden).

What's happening?

share|improve this question
up vote 3 down vote accepted

The short answer is that you have to have execute permission or higher (5) on a directory to list the contents of that directory. You can access files in a directory if you have read permission (4) but you have to know the name of the file because you can't list the contents of the directory.

So, the user you are using to access the directory is not the user who owns the directory (because then the '7' permission would apply. Thus to fix this either use mode 755 on the directory, or make it so that the same user owns the directory and accesses it. Or of course, always know the exact filename you are trying to access in the directory, then the 4 permission is sufficient.

share|improve this answer

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.