Alan Wylie's Web Site

Thu, 2010-05-06


Confusing Apache error message permalink

If you get the following error message:

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

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