Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess not working 2

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hi,

My htaccess user/pass dialog box is coming up but it won't accept my password. It just keeps popping the box up.

I have AllowOverride set to All... I have .ht files set properly in my httpd.conf and I have all my paths set properly within the .htaccess file and I've done the htpasswd bit properly.

Any other ideas?

Thanks.
 
I have AllowOverride Authconfig in my httpd.conf file, and my passwording works correctly. Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
Newposter,
"All" includes "Authconfig".

frozenpeas,
Is the path to the htpasswd file correct? ______________________________________________________________________
TANSTAAFL!
 
Can Apache read your .htpasswd file? ______________________________________________________________________
TANSTAAFL!
 
Is there any other way I can tell? I am able to open it, cat it, and whatnot.

What do you recommend?
 
Examine httpd.conf to determine the user under which Apache is running.

Perform "ls -l" on your .htpasswd file.

If you were Apache's user, do the permissions and ownership of the file look like they'd let you do it? ______________________________________________________________________
TANSTAAFL!
 
Apache runs under the user/group apache/apache.

The owner of my .htpasswd file is root.
 
It's like pulling teeth... ______________________________________________________________________
TANSTAAFL!
 
Ah, yes. The permissions were set wrong -- I missed reading that part in sleipnir's post.

Now it's 644 and all is well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top