pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/r7gj33wz6sni/public_html/' is executable

Bob Chaffin

Registered
Mar 18, 2021
1
0
0
USA
cPanel Access Level
Root Administrator
Hi,

We just migrated from one Cpanel server to another. The hosting provider told us use the Cpanel transfer from the new server. We did this and all seemed to go well. The site comes up but we cannot log in as it hangs. There are sever errors in the logs all with the same error:

[Thu Mar 18 18:58:49.343032 2021] [core:crit] [pid 15561] (13)Permission denied: [client 93.174.93.12:56699] AH00529: /home/r7gj33wz6sni/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/r7gj33wz6sni/public_html/' is executable


We have checked the old and new server to verify same settings. We have also verified the files have the same permissions.

Thanks in advance.
 

andrew.n

Well-Known Member
Jun 9, 2020
949
351
63
EU
cPanel Access Level
Root Administrator
What are the ownership and permissions on the file?

ls -l /home/r7gj33wz6sni/public_html/.htaccess

It is possible that either public_html folder or /home/r7gj33wz6sni has incorrect permissions/ownership
 

Khaled A.

Registered
Jun 11, 2015
3
1
51
kuwait
cPanel Access Level
Website Owner
Hello,

Is there an update on this error please? My public_html is set to 644, I have not done any major changes (except a staging site for another subdomain within the same directory) Could this be the cause?

Kindly advise
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,241
2,217
363
cPanel Access Level
Root Administrator
@Khaled A. - this isn't a cPanel-side error that is something our team needs to fix, but it is likely related to permissions.

public_html itself should not be set to 644 - that directory should be 755, and then the .htaccess file itself should be 644. Can you check and see if that is the case?