Alan Wylie's Web Site

Thu, 2010-05-06

Confusing Apache error message permalink

If you get the following error message:

[crit] [client] (13)Permission denied: /foo/bar/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer:

check that the permissions on the directory enable the web server user to read/access it, to fix it do something like:

find <dir> -type d | xargs chown <apache user>
find <dir> -type d | xargs chmod u+rx