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 Directories make mediawiki with 500 error ?

Discussion in 'General Discussion' started by meeti, Nov 1, 2008.

  1. meeti

    meeti Well-Known Member

    Joined:
    Dec 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    hello,


    i install mediawiki on my server,

    and i ope the "Password Protect Directories" from cpanel for my public_html.

    now,i browser my website and type the name and password for the pop window,

    but after that,it shows "internal server error 500".


    if i close the "Password Protect Directories" for it,

    it will work well,


    can anyone teach me how can i colve the problem ?



    thanks
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Check apache logs. Open the URL and enter the login credentials. Don't press enter. Login to your server via SSH and tail the apache error log by using the command below.

    tail -f /usr/local/apache/logs/error_log

    Then press enter in the browser where you are getting the error. Check logs instantly, they should give you an idea of why you are getting the error. Then you can fix it.
     
  3. meeti

    meeti Well-Known Member

    Joined:
    Dec 25, 2007
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    hi,

    it shows

    how can i fix it?


    thanks
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Check the ownership and permissions of the service.pwd file and all the directories before that, service.pwd should be 600 and owned by user.user where user is the cPanel user.
     
  5. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    I've got a similar problem, but have not been able to solve it with any amount of permission inspection / tweaking. This is an .htaccess/htpasswd set up completely by cPanel, not by me... so cPanel seems to be creating htpasswd files that it can't itself read.

    My error logs say:
    (13)Permission denied: Could not open password file: /path/to/file
     
  6. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    For future generations:

    We were able to fix this problem by setting the group ownership of the .htpasswd directory to nobody.
     
Loading...

Share This Page