Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 17th, 2004, 12:18 PM
Corrina Corrina is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 Corrina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cannot get .htaccess and .htpasswd to function

I cannot get .htaccess and .htpasswd to function. The login dialog box pops up but never authenticates the password (username and password generated via a website that offers such). Does the folder itself need a CHMOD to something specific? I've read everything from 777 to 755 to 644 for the two .ht files all of which I've tried but can't make work.

Thanks for any help you can give.

Reply With Quote
  #2  
Old June 17th, 2004, 01:10 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
As with your other post, this is something you'll probably need to work out with your hosting company. Could be that the password generated by the Web site you mention is formatted differently than what your host is expecting -- only the host can tell you what's required for their particular setup.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old June 18th, 2004, 03:26 AM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
In your .htaccess file you want to have something like this:
PHP Code:
 AuthType Basic
AuthName 
"Authentication Required"
AuthUserFile /home/.htpasswds/passwd

require valid-user 

The second line (AuthName) is simply the name the popup will display. The AuthUserFile line is a path to a file with your username and password combos.

To create a password file and add a username/password combo use the htpasswd program:

htpasswd -cb /home/.htpasswds/passwd myuser 444444

Where /home/.htpasswds/passwd is the password file, myuser is the username and 444444 is the password.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #4  
Old September 27th, 2004, 08:32 PM
photon photon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 photon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post htaccess problem ....

The problem is due to differnet encryption algorithm used those by htpasswd for password generation and by http server for authentication. you can use the following perl script to gererate username/password pairs.
http://www.cse.iitd.ernet.in/~csd00377/misc/addpw.pl
regards,

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Cannot get .htaccess and .htpasswd to function


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT