SOLVED cannot open password file

keat63

Well-Known Member
Nov 20, 2014
1,933
268
113
cPanel Access Level
Root Administrator
I'm trying to password protect public_html on one of my domains and get an internal server error.
Apache log says

AH01620: Could not open password file: /home/xxxxxxxxxxx/.htpasswds/public_html/passwd
The file is actually there with 0755 permissions.

The odd thiong is, if I try this on a different domain it works.
Any ideas please ?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,293
1,279
313
Houston
The file should have 644 perms in most cases

/home/$user/.htpasswds/public_html should be 755

/home/$user/.htpasswds/ should be 750

Ownership on /home/$user/.htpasswd should be user:nobody
For /home/$user/.htpasswd/public_html/ it should be user:user
and for /home/$user/.htpasswd/public_html/passwd it should be user:user

can you confirm that the permissions/ownership are the same?