Page 1 of 1
Need badly
Posted: Sat Feb 01, 2003 2:02 am
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
Posted: Sat Feb 01, 2003 3:00 am
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.
Posted: Sat Feb 01, 2003 12:45 pm
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
Posted: Sat Feb 01, 2003 1:30 pm
by bznutz
there is a line in httpd.conf that enables the use of .htaccess files. Read the apache tutorials.
Posted: Sat Feb 01, 2003 3:09 pm
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]
Posted: Sat Feb 01, 2003 3:25 pm
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>
Posted: Sat Feb 01, 2003 5:25 pm
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?
Posted: Sun Feb 02, 2003 1:09 pm
by ondrovic
got it to work thanks