Why is my login/password working for HTTP authentication?

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
I have tried doing this manually and also through Password Protection in cPanel and it will not let me log in.

Here is what I have in in .htaccess inside /directory:

AuthUserFile /home/login/.htpasswds/.htpasswd
AuthName "Password Protected"
AuthType Basic
require valid-user

Here is what I have in /home/login/.htpasswds/.htpasswd

login:password

I know the path is correct because if I enter pico /home/login/.htpasswds/.htpasswd it shows login:password

Any ideas what the problem is? I don't understand what the problem is??
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
The password has to be encrypted to work; you can use the htpasswd command to do that.

Or you could just make life easier for yourself and use the built-in cpanel password management function, on the main cpanel menu when you log in. It sets up the .htaccess and .htpasswd files for you and you can create or delete users as needed. Works like a charm.
 

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
Or you could just make life easier for yourself and use the built-in cpanel password management function, on the main cpanel menu when you log in. It sets up the .htaccess and .htpasswd files for you and you can create or delete users as needed. Works like a charm.
I tried doing this as well and for some reason it isn't working. It shows the user was created but it never accepts my login/password.