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.

Password Protect brings up 500 Internal Server Error! Help!

Discussion in 'General Discussion' started by Chri5123, Jun 7, 2010.

  1. Chri5123

    Chri5123 Registered

    Joined:
    Jun 7, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hey guys,

    I want to password protect a folder on my site and i have done so with a simple password protect in cpanel, nice and simple.

    However it tends to work first time however if i clear my cache or another person trys to log in it brings up a 500 internal server error.

    Why is this?

    The only way i can get it to work again is delete the user or add another user and i cant do this every 5 mins.

    Please help!

    Chris
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Can you paste the contents of your .htaccess file here? BTW, do you own the server? If yes, what do the Apache error logs say

    You can also manually password protect a directory using the .htaccess file. Just place the Auth code and create a .htpasswd file to include user:password.

    Make sure you place the .htaccess file in a directory you want to password protect to.
     
Loading...

Share This Page