Author Topic: pcfq_openfile: unable to check htaccess file...  (Read 3383 times)

Offline MarkEHansen

  • Jr. Member
  • **
  • Posts: 10
pcfq_openfile: unable to check htaccess file...
« on: September 13, 2015, 12:19:41 PM »
I'm trying to install Roundcube 1.1.2 (complete version) on a CentOS 7.0 Linux machine and am getting the following error when trying to access the application via local web browser:

Code: [Select]
[Sun Sep 13 09:06:34.096832 2015] [core:crit] [pid 29683] (13)Permission denied: [client 10.1.1.70:55708] AH00529: /var/www/html/roundcube/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/roundcube/' is executable

I understand that the directories leading up to and including the roundcube directory must have search permission (x) and that the .htaccess file in the roundcube directory must have read permission for the httpd user (apache). Both are true - I've checked multiple times.

I'm guessing there is something else that I'm missing. Note that I've placed a file named info.php in the /var/www/html directory to provide PHP info and that works when I browse to it.

I've gone through the installation instructions and verified I've done everything multiple times.

What am I missing? Is this an SE Linux issue? The /var/www/html is the default location for web content for Apache, so I thought SELinux didn't come into play.

Do I need to change some configuration in the httpd config to allow it to use the .htaccess files? I haven't touched the httpd configuration other than what was specified by the installation instructions.

Thanks for any help.

Offline MarkEHansen

  • Jr. Member
  • **
  • Posts: 10
Re: pcfq_openfile: unable to check htaccess file...
« Reply #1 on: September 19, 2015, 07:38:42 PM »
It seems this was an SELinux issue after all. At the suggestion of another, I ran the following command:

Code: [Select]
restorecon -R /var/www
and the problem is solved. I'm now running into another issue for which I will post a separate topic.

Thanks,