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

This is the error I get in my log:

Permission denied: /home/ross/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

My VirtualHost is pretty simple:

 ServerName jotter.localhost
 DocumentRoot /home/ross/www/jotter/public
 DirectoryIndex index.php index.html

 <Directory /home/ross/www/jotter/public>
  AllowOverride all
  Order allow,deny
  allow from all

 CustomLog /home/ross/www/jotter/logs/access.log combined
 ErrorLog /home/ross/www/jotter/logs/error.log
 LogLevel warn

Any ideas why this is happening? I can't see why Apache is looking for a .htaccess there and don't know why this should stop the request. Thanks.

share|improve this question

migrated from Oct 17 '10 at 8:49

This question came from our site for computer enthusiasts and power users.

Fancy letting me know why it should be closed? – Ross Oct 16 '10 at 23:44

Turns out the way around this is to set permissions correctly on the following directories:

  • site directory: chmod 755 /home/ross/www/jotter
  • /home: chmod 711 /home/your_username

From (Google cached).

share|improve this answer
It's not called a workaround when it's the proper configuration. :) – MikeyB Jan 17 '11 at 20:17

When serving a page, Apache will check for an .htaccess file in each directory component starting at the root:

- /.htaccess
- /home/.htaccess
- /home/ross/.htaccess

Apache was unable to open your /home/ross/.htaccess file, either because it didn't have execute permission to /home/ross or read permission on /home/ross/.htaccess.

In order to serve pages, you'll need to add execute permissions for Apache to each directory component along the way. Read permission gives Apache the ability to generate indexes for a directory if you choose to do so; read permission is not necessary to open a file if you know its name.

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.