The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why is my login/password working for HTTP authentication?

Discussion in 'General Discussion' started by Jeff75, Dec 16, 2006.

  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    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??
     
  2. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    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.
     
  3. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  4. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I've never had it fail, so I'd suspect there's something broken on your site or on the server.
     
Loading...

Share This Page