Apache Authentication

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Apache Authentication

Post by Kingo »

Hello,
I'm trying to authenticate a user to the Apache web server.
I did the following but was not successful.

1.on DOS

C:\Program Files\Apache Group\Apache\bin>htpasswd.exe -c kpasswords kusers
Automatically using MD5 format on Windows.
New password: ******
Re-type new password: ******
Adding password for user kusers
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Post by Kingo »

I have a directory by name php_files under htdocs that I want to protect.
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Post by Kingo »

I created the htaccess file under C:\Program Files\Apache Group\Apache\bin
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Post by Kingo »

my htaccess file has the following
AuthName "Add your login message here."
AuthType Basic
AuthUserFile /C/Program Files/Apache Group/Apache/bin
require user kusers


I'm not able to authenticate. Pleae help me out. ANy help is really appreciated
Post Reply