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 Protection Directory Issues

Discussion in 'General Discussion' started by cjmwebdesigns, Dec 5, 2006.

  1. cjmwebdesigns

    cjmwebdesigns Well-Known Member

    Joined:
    Dec 20, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Twitter:
    I have a customer who is trying to password protect directories. One of his programs sets this up for him and it failed. When a user went to the page it said "PAGE NOT FOUND" but not like a 404.

    I then had the customer lock this directory via cPanel and it did the same thing. The page at first does not come up with a a 404 error, but after 15 minutes now it is. If I remove the lock the page instantly returns.

    So, I also had him build a separate folder called testing and it is doing the same thing.

    I have also tried building test folders in two other accounts, same reseller account and have locked both directories sucessfully.

    The customer is utilizing a message board and it appears that I have to enter the trailing / after a folder if I want to view it, but, still, I should not get a "Page Not Found" should I?

    Thanks,
    CJ
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    200
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Post the contents of the htaccess file. Or at least check it to see if there's something wrong there.
     
  3. cjmwebdesigns

    cjmwebdesigns Well-Known Member

    Joined:
    Dec 20, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Twitter:
    Here is the .htaccess created by cpanel
    -------------------------------------------------------------------
    AuthType Basic

    AuthName "test"

    AuthUserFile "/home/########/.htpasswds/testing/passwd"


    require valid-user

    ---------------------------------------------------------------------
    Here is the .htpasswd file
    --------------------------------------------------------------------
    test:RcuHT/IsL53Ps

    --------------------------------------------------------------------

    Right now the page is coming up as 404. When I first created the directory it just said "Page Not Found"

    If I remove the .htaccess file the directory is accessible.

    Thanks,
     
  4. cjmwebdesigns

    cjmwebdesigns Well-Known Member

    Joined:
    Dec 20, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Fellow cPanel users, I am back and this issue still exists! This one sort of fell off my radar with the holidays and the fact that my client was not pushing the issue, however, in all honesty, I really should try and get this issue resolved.

    My .htaccess and .htpasswd files are posted in my post above from 12-05-2006 in which I did not receive a response.

    The odd thing is I only have this problem with this one account. I do not believe it has been set up any differently. I have even copy and pasted .htaccess and .htpasswd files from other accounts, went to a website that assists creating them and so forth. Nothing has worked.

    I am truly looking for some ideas here as this customer would really benefit from a protected directory or two.

    For this user, this issue appears on existing directories and when I create new directories. It is not isolated to the one directory as I may have indicated above. It is any and all directories from what I have seen in my testing.

    I can send the link to anyone who wants to see or understand the issue.

    Please post a message, e-mail me, PM or hit me on one of my IM clients if you have any ideas at all.

    Thank you.
     
  5. Leandro

    Leandro Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentin
    cPanel Access Level:
    DataCenter Provider
  6. cjmwebdesigns

    cjmwebdesigns Well-Known Member

    Joined:
    Dec 20, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Twitter:
    I still have not found a resolution to this and will need to see if the issue still exists. At this time my customer stopped asking and I have some other fish to fry.


    <Still broken to. When I first bring up the page it says Page Not Found, later I am sure it will say it cannot open the page or something to that affect, but, ironically I only have tis problem with this one customer who is running a message board as their main website.>
     
    #6 cjmwebdesigns, Jun 17, 2007
    Last edited: Jun 17, 2007
  7. jamez01

    jamez01 Registered
    PartnerNOC

    Joined:
    May 2, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hope this helps..

    I had the exact issue on a clients server. When looking through apache's error_log I see the child process segfault every time I try to load the page.

    I was forced to recompile apache (WHM -> Apache Update, make sure "Skip apache build" is not checked).

    This fixed my issue instantly.

    I hope this works for you.

    Good Luck.
     
  8. jerry12345

    jerry12345 Registered

    Joined:
    Aug 27, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Apache rebuild

    Please note apache rebuild did not work for us.:mad:
     
  9. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Same problem here. Old accounts (which use password protection for months) are ok, but all new accounts created on server have this problem.

    If someone will find a working solution, please share :)
     
  10. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Please open a ticket @ https://tickets.cpanel.net/submit/
     
  11. asiams

    asiams Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hokkaido, JAPAN
    Found the solution

    I had the same problem with Apache 2.2 with current Cpanel.

    This is what I did and it solved the problem:

    1. Software upgrade for Apache from WHM and checked the following items for Apache rebuild at the advanced configuration screen:

    Auth Basic
    AuthzDBM
    AuthzDefault
    AuthzOwner
    AuthzUser

    2. Rebuild the Apache

    Then you will see .htaccess work afterwards.

    I think this should be included in the default feature soon.

    asiams
     
Loading...

Share This Page