Need badly

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
ondrovic
Forum Newbie
Posts: 8
Joined: Fri Jan 31, 2003 1:50 pm

Need badly

Post by ondrovic »

Would like a script like the one here. I have tried many different times to get it to work on my own and failed so i guess im doing something wrong. I only want to protect members.html But I want to be able to setup many usewrnames and passwords but I dont know how to do it im not sure how to set it up either so if anyone could help me or recommend a php script to buy that works pleas let me know.

Thanks for the time, effort and help
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

question is, wether you need php to do this. If your site runs on an apache webserver (or another capable of .htaccess) the mechanism described at http://www.apacheweek.com/features/userauth is sufficient.
ondrovic
Forum Newbie
Posts: 8
Joined: Fri Jan 31, 2003 1:50 pm

Post by ondrovic »

i have tried to get .htaccess to run but cant figure it out. I have tried every tutorial i could find with no luck. Im running apache off my home machine which is using windows. If you could help me get .htaccess to work i would be greatly apreciated. Thanks
User avatar
bznutz
Forum Commoner
Posts: 58
Joined: Mon Dec 09, 2002 9:52 pm
Location: Here
Contact:

Post by bznutz »

there is a line in httpd.conf that enables the use of .htaccess files. Read the apache tutorials.
ondrovic
Forum Newbie
Posts: 8
Joined: Fri Jan 31, 2003 1:50 pm

Post by ondrovic »

i know that the AllowOveride must equal All or AuthConfig but i still can get it to work. i want to protect /members/ ( C:\Program Files\Apache Group\Apache 2\httdocs\members\ ) but I cant get it at all ive set up my administrator .htaccess / .htpasswd files and place them into my /members/ dir but no luck i still can access herewith no promt for authorization. Thanks for all the help

[edit]
I got it to work but its not letting me log in now Also i wanted to add more user names any ideas? Thanks for all the help i would have been able to do it without everyones feedback
[edit]
ondrovic
Forum Newbie
Posts: 8
Joined: Fri Jan 31, 2003 1:50 pm

Post by ondrovic »

here is my .htaccess file is this right??

Code: Select all

AuthUserFile members/.htpasswd
AuthGroupFile /members/
AuthName "Private"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>
ondrovic
Forum Newbie
Posts: 8
Joined: Fri Jan 31, 2003 1:50 pm

Post by ondrovic »

After many problems ive gotten .htaccess to work. Thanks for everyone that helped me. I only have on problem left I made the .htacces file

Code: Select all

AuthUserFile members/.htpasswd
AuthGroupFile /
AuthName ".::::: Members Login :::::."
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>
but i cant login now my protected dir is /members/ and i placed the .htaccess & .htpasswd into it am i doing someting wrong? or do i neeed to make changhes to httpd?
ondrovic
Forum Newbie
Posts: 8
Joined: Fri Jan 31, 2003 1:50 pm

Post by ondrovic »

got it to work thanks
Post Reply