Error : Permission denied: .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable [Solved]

Updated on September 1, 2017

If you are getting this error “Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable“. Then here’s how you can fix the issue.

Solution:

Apache web server uses distributed configuration files via .htaccess (that provides access control for various parts of the filesystem). When httpd is configured to use .htaccess, then it checks for this file in every directory under DocumentRoot. If httpd is not able to read .htaccess or if it does not find one, then the above error will be thrown.

You can fix this issue in two ways,

  1. By setting AllowOverride None in httpd.conf for relevant directories. This will tell httpd to stop looking for .htaccess
  2. Else, you can the change filesystem permission to ‘chmod 755‘ (which is normally good enough)

Was this article helpful?

Related Articles

Leave a Comment