Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Dec 2003
    Location
    New Jersey
    Posts
    63

    Default Password Protection Directory Issues

    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
    Regards,
    Craig M.
    WHM/cPanel user since 2003

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Post the contents of the htaccess file. Or at least check it to see if there's something wrong there.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Member
    Join Date
    Dec 2003
    Location
    New Jersey
    Posts
    63

    Default

    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,
    Regards,
    Craig M.
    WHM/cPanel user since 2003

  4. #4
    Member
    Join Date
    Dec 2003
    Location
    New Jersey
    Posts
    63

    Exclamation

    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.
    Regards,
    Craig M.
    WHM/cPanel user since 2003

  5. #5
    Member Leandro's Avatar
    Join Date
    Sep 2003
    Posts
    48

    Angry Same here!

    Im having the same problem, but when i try to enter via the tempral URL the protect works fine!,

    example

    http://IP.IP.IP.IP/~username/directory/

    but via domain doesnt work!

    http://www.domain.com/directory/

    any ideas?



    Regards!

  6. #6
    Member
    Join Date
    Dec 2003
    Location
    New Jersey
    Posts
    63

    Default

    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.>
    Last edited by cjmwebdesigns; 06-17-2007 at 02:23 PM. Reason: Added Some More Info
    Regards,
    Craig M.
    WHM/cPanel user since 2003

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge jamez01's Avatar
    Join Date
    May 2007
    Posts
    3

    Default 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. #8
    Registered User
    Join Date
    Aug 2005
    Posts
    3

    Default Apache rebuild

    Please note apache rebuild did not work for us.

  9. #9
    Member
    Join Date
    Feb 2005
    Posts
    74

    Default

    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. #10
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by ManXP View Post
    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
    Please open a ticket @ https://tickets.cpanel.net/submit/

  11. #11
    Member
    Join Date
    May 2003
    Location
    Hokkaido, JAPAN
    Posts
    91

    Default 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

Similar Threads & Tags
Similar threads

  1. Directory Protection
    By abdusalam in forum Security
    Replies: 10
    Last Post: 06-24-2010, 12:05 PM
  2. Directory password protection removal problems
    By Mousechi1 in forum Security
    Replies: 1
    Last Post: 03-21-2010, 06:16 PM
  3. Replies: 0
    Last Post: 12-31-2005, 09:15 PM
  4. Password Protection/Login Issues
    By stftk14 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-08-2004, 02:08 PM
  5. Index Manager/Password Protection on Root Web Directory?
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-21-2003, 10:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube