Password Protection Directory Issues

cjmwebdesigns

Well-Known Member
Dec 20, 2003
72
0
156
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
 

cjmwebdesigns

Well-Known Member
Dec 20, 2003
72
0
156
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,
 

cjmwebdesigns

Well-Known Member
Dec 20, 2003
72
0
156
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.
 

cjmwebdesigns

Well-Known Member
Dec 20, 2003
72
0
156
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.>
 
Last edited:

jamez01

Registered
PartnerNOC
May 2, 2007
3
0
151
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.
 

ManXP

Well-Known Member
Feb 3, 2005
62
0
156
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 :)
 

asiams

Well-Known Member
May 28, 2003
89
0
156
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