mosse.francisco
New member
- Joined
- Jul 15, 2025
- Messages
- 1
Hi, after migrating websites from Cpanel to DirectAdmin all the websites that have protected folder started to show 500 error after writting user and password in the popup.
Important: in the control panel, in the protected folders menu, I see the protection. And the file .htpasswd exists!
Why if I see the log, I read:
[Wed Jul 16 03:34:27.102098 2025] [authn_file:error] [pid 3537264:tid 3537643] (13)Permission denied: [client 181.47.104.31:0] AH01620: Could not open password file: /home/mydomain/domains/mydomain.com/.htpasswd/public_html/protected_folder/.htpasswd
and the .htaccess call it fine
AuthType Basic
AuthName "Protegido"
AuthUserFile "/home/mydomain/domains/mydomain.com/.htpasswd/public_html/protected_folder/.htpasswd"
require valid-user
I tried deleting and re-creating the protection and it sill happens.
So I had to
1) Copy /home/mydomain/domains/mydomain.com/.htpasswd/public_html/protected_folder/.htpasswd to /home/mydomain/domains/mydomain.com/public_html/protected_folder/.htpasswd
Modiy .htaccess so it searches .htpasswd in the new location
I think that there is a bug with this
Thanks,
Francisco
Important: in the control panel, in the protected folders menu, I see the protection. And the file .htpasswd exists!
Why if I see the log, I read:
[Wed Jul 16 03:34:27.102098 2025] [authn_file:error] [pid 3537264:tid 3537643] (13)Permission denied: [client 181.47.104.31:0] AH01620: Could not open password file: /home/mydomain/domains/mydomain.com/.htpasswd/public_html/protected_folder/.htpasswd
and the .htaccess call it fine
AuthType Basic
AuthName "Protegido"
AuthUserFile "/home/mydomain/domains/mydomain.com/.htpasswd/public_html/protected_folder/.htpasswd"
require valid-user
I tried deleting and re-creating the protection and it sill happens.
So I had to
1) Copy /home/mydomain/domains/mydomain.com/.htpasswd/public_html/protected_folder/.htpasswd to /home/mydomain/domains/mydomain.com/public_html/protected_folder/.htpasswd
Modiy .htaccess so it searches .htpasswd in the new location
I think that there is a bug with this
Thanks,
Francisco