4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 "Password Protection by Rod" - question about tuto
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
n_true
Junior WebHelper
Junior WebHelper


Joined: 30 Jun 2004
Posts: 1
Location: Arkansas

PostPosted: Wed Jun 30, 2004 3:12 am (20 years, 5 months ago) Reply with QuoteBack to Top

http://www.4webhelp.net/tutorials/misc/htaccess.php

You guys probably have had questions to this before but I looked over the forum for a little while and could not find anything so I though it would be ok for me to post a question.

I followed the tutorial and I had thought that I had did it correctly however when I try to sign in I enter the correct username and password however it will not allow me to enter.

The files I made look like the following:

.htpasswd:

guest1:16MFvXdVVHM3c
guest2:27HVMSXZxJ.iM
guest3:78RwNWlPc5Cog

.htaccess:

AuthName "Realm name"
AuthType Basic
AuthUserFile /var/www/html/.htpasswd
require valid-user

Basically when I enter the information into the password box that pops up when I go to my site it doesnt do anything after I press "ok." So im guessing its not matching my password or cannot find the password file although im not sure.

Please any help would be wonderful.

My current host is http://www.smoovenet.com/

Thanks!

-N

________________________________
"What's in a name? That which we call a rose
By any other word would smell as sweet."
OfflineView User's ProfileFind all posts by n_trueSend Personal Message
SfCommand
Senior WebHelper
Senior WebHelper


Joined: 10 Nov 2002
Posts: 143
Location: UK

PostPosted: Fri Jul 02, 2004 9:22 pm (20 years, 5 months ago) Reply with QuoteBack to Top

Try putting this in your .htaccess file

AuthUserFile /var/www/html/.htpasswd
AuthName "Realm name"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>

________________________________
Miguel

http://community.34sp.com
http://www.miguel.me.uk | http://www.sfcommand.co.uk | http://www.ssdg.org.uk
OfflineView User's ProfileFind all posts by SfCommandSend Personal MessageVisit Poster's Website
sukalover
Junior WebHelper
Junior WebHelper


Joined: 13 Jan 2005
Posts: 3

PostPosted: Thu Jan 13, 2005 1:27 am (19 years, 11 months ago) Reply with QuoteBack to Top

I am having the same problem even when I tried what was suggested in the reply. The box pops up to put in user name and password but after I type it, the box just reappears without giving me access to the file.

I have tried everything I can think of, my files look like this:

.htaccess

AuthName "Realm name"
AuthType Basic
AuthUserFile /www/.htpasswd
<Limit GET POST>
require valid-user
</Limit>

.htpasswd
suka:76AiOf/Jz1226

Please can anyone help, greatly appreciated
OfflineView User's ProfileFind all posts by sukaloverSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Jan 13, 2005 6:13 am (19 years, 11 months ago) Reply with QuoteBack to Top

Is the .htpasswd file really located in /www ?

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
sukalover
Junior WebHelper
Junior WebHelper


Joined: 13 Jan 2005
Posts: 3

PostPosted: Thu Jan 13, 2005 6:21 am (19 years, 11 months ago) Reply with QuoteBack to Top

Sorry I managed to solve this issue now. the path was not correct much of it was missing that did not show up with FTP client.

Thanks for your pointer


Last edited by sukalover on Thu Jan 13, 2005 6:37 am, edited 1 time in total
OfflineView User's ProfileFind all posts by sukaloverSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Jan 13, 2005 6:25 am (19 years, 11 months ago) Reply with QuoteBack to Top

That's not the path to your .htpasswd file. Do you have PHP installed? If so, use this script to find out the path to the www directory:

http://www.4webhelp.net/scripts/php/doc_root.php

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
sukalover
Junior WebHelper
Junior WebHelper


Joined: 13 Jan 2005
Posts: 3

PostPosted: Thu Jan 13, 2005 6:43 am (19 years, 11 months ago) Reply with QuoteBack to Top

Thanks for all your help daniel, now everything is working properly and I am a very happy man.

the php file was great
OfflineView User's ProfileFind all posts by sukaloverSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Thu Jan 13, 2005 11:41 pm (19 years, 11 months ago) Reply with QuoteBack to Top

Daniel wrote:
That's not the path to your .htpasswd file. Do you have PHP installed? If so, use this script to find out the path to the www directory:

http://www.4webhelp.net/scripts/php/doc_root.php

I can't believe there's a copyright notice on that script - it's one line of code Laughing

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Fri Jan 14, 2005 7:58 am (19 years, 11 months ago) Reply with QuoteBack to Top

It's a standard template for all our scripts, as I've already stated Smile

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.14299 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme