Web Design and Development Forums

htaccess password prob

This is a discussion on "htaccess password prob" within the Perl, Python, Ruby and Others section. This forum, and the thread "htaccess password prob are both part of the Program Your Website category.

Old Apr 3rd, 2007, 13:38   #1 (permalink)
Reputable Member
 
Join Date: Dec 2005
Location: scotland
Age: 26
Posts: 135
htaccess password prob

having a problem trying to get it working. i have my htaccess file in my public folder and my htpasswd file in the protected folder however i keep getting a 500 internall error?
.htaccess
Code: Select all
AuthUserFile /root/public_html/hidden data/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require user wsabstract
.htpasswd
Code: Select all
wsabstract:password
what am i missing?
__________________
karloff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 3rd, 2007, 19:15   #2 (permalink)
Reputable Member
 
Join Date: Dec 2005
Location: scotland
Age: 26
Posts: 135
Re: htaccess password prob

any thoughts?
__________________
karloff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 4th, 2007, 15:14   #3 (permalink)
Most Reputable Member
 
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,319
Send a message via Skype™ to ukgeoff
Re: htaccess password prob

Your last line in the .htaccess file; I just use:
Code: Select all
Require valid-user
You can then list your 'user-password' pairs in your .htpasswd file

Is your password coded into md5 format? If not, that is propably your problem.
__________________
Regards
Geoff
ukgeoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 4th, 2007, 15:48   #4 (permalink)
Reputable Member
 
Join Date: Dec 2005
Location: scotland
Age: 26
Posts: 135
Re: htaccess password prob

gave up on it, just created a simple php login script. don't think it was in md5 format. i'll check that out. Thanks
__________________
karloff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 8th, 2007, 20:39   #5 (permalink)
Reputable Member
 
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 294
Re: htaccess password prob

Quote:
Originally Posted by karloff View Post
having a problem trying to get it working. i have my htaccess file in my public folder and my htpasswd file in the protected folder however i keep getting a 500 internall error?
If you have a look at the Apache error log, it should give you more details of what caused the "500". The "500 internal error" message is intentionally very bland and lacking in information so that users to a broken website aren't given too many cluse as to how to hack it, and the extra detail that the programmer needs to fix problems is made available to him/her throught the error logs
__________________
Graham Ellis ...
Open Source trainer with Well House Consultants
grahame is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 3rd, 2007, 15:21   #6 (permalink)
Reputable Member
 
Join Date: Jul 2007
Location: France
Posts: 101
Re: htaccess password prob

Is your user really 'wsabstract' as found in tutorials?

Secondly, the path to your .htpasswd file has to be your server path, not domain path, AND your directory name has a space in it. May be worth checking both if you haven't already sorted it.
matelot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 27th, 2007, 08:33   #7 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
Re: htaccess password prob

No solution guys...?
ahh...cammon...!!!

Just a tought! I am using a free Domain to upload my own small website for personal use. You guys are talking about this server path... So how am I going to know my server path if I am going to use this .htaccess in my site?

Here is my sample image of how my folder management in the domain file manager.
[ FolderTree ]

Thanks.
__________________


Last edited by Monie; Jul 27th, 2007 at 08:49. Reason: Adding image attachment
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 27th, 2007, 09:15   #8 (permalink)
Reputable Member
 
Join Date: Jul 2007
Location: France
Posts: 101
Re: htaccess password prob

For example, you should have in .htaccess:

AuthUserFile e.g. /homepages/34/accountnumber/_hiddendirectory/pw_file
or some such.

/homepages/34/accountnumber or whatever, is your website path on the host's server. Somewhere in the help documentation with your hosting provider they will give you the server path for your site. If not, email them.

Hope that helps.
__________________
DR400-140B Dauphin, 5.3 litre 160hp Textron-Lycoming O320 D2A flat 4, 130kt cruise, range 825km, 4 seats
matelot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 28th, 2007, 01:30   #9 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
Re: htaccess password prob

Ok I found it..

But the server path of my site begin with a harddisk directory something like:

Code: Select all
c:/sites/content/m/o/n/moniesblog
So I will put it like this in my htaccess file?
Code: Select all
AuthUserFile c:/sites/content/m/o/n/moniesblog/.htpasswd

If this is true, then I should save my .htaccess file into whichever folder that I want to protect, am I right so far?

What about the htpasswd file(that contain the username and the encrypted password)? Where am I supposed to put it? Is it in my moniesblog directory or in some other specific folder?

Thanks..
__________________

Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 28th, 2007, 08:41   #10 (permalink)
Reputable Member
 
Join Date: Jul 2007
Location: France
Posts: 101
Re: htaccess password prob

Are you running from a local server i.e. on your home computer, or a web host? Unusual for a web host to have an absolute path beginning with c:/...

Anyway, the .htaccess file goes in the directory you are trying to protect. The .htaccess file contains the path to your (hidden) .htpasswd file. The password file can go anywhere - just make sure it's hidden.

Hope that helps.
__________________
DR400-140B Dauphin, 5.3 litre 160hp Textron-Lycoming O320 D2A flat 4, 130kt cruise, range 825km, 4 seats
matelot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 30th, 2007, 01:14   #11 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
Question Re: htaccess password prob

Thanks matelot..

I am actually using a free web host.
After checking with my web host, they said that free account does not support "htaccess".
Hemmm.... can you suggest me any free web host out there that support htaccess.

I am developing my personal website at the beginning stage, after it's complete, then I will think about buying a cheap domain.

Thanks again.
__________________

Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
htaccess password

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protecting pages (.htaccess) fernandopolania Accessibility and Usability 10 Oct 24th, 2007 16:45
hey.. image prob mohammedhajat Flash & Multimedia Forum 8 Oct 4th, 2006 13:11
BG prob in firefox tkey HTML Forum 6 Jun 5th, 2006 12:50
nav bar prob OK IE6 wrong FF brunoc CSS Forum 1 May 8th, 2006 02:47
IE prob karloff CSS Forum 11 Apr 24th, 2006 11:41



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 23:06.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59