RadarURL

pcfg_openfile: unable to check htaccess file, ensure it is readable

by JAESOO posted Dec 19, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

I first noticed some images not displaying on a web site that were correctly linked to. Looking at the error_log, I saw entries such as:

[Tue Jan 13 12:03:53 2009] [crit] [client XX.XXX.XXX.XX] (13)Permission denied: /var/www/vhosts/domainname.co.uk/httpdocs/site/articles/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.domainname.co.uk/file.php

This error message is pointless and more than misleading as I had no .htaccess file in the directory. Upon investigation saw that I had chmoded the folder to 644. Directories need to have the execute bit set so that we have the permissions to traverse the directory tree in order to access files.

To correct the error I set the folder to chmod 755 foldername, the images appeared again and the error message stopped appearing in the logs.


출처 : http://www.liamdelahunty.com/tips/apache_pcfg_openfile_unable_to_check_htaccess.php


Articles

1 2 3 4