403 Forbidden.(Why's htacces a problem..??)

From: Date: Fri, 27 Oct 2000 11:39:58 +0000
Subject: 403 Forbidden.(Why's htacces a problem..??)
Groups: php.general 
Request: Send a blank email to php-general+get-22317@lists.php.net to get a copy of this message
Hi Guyz.. I am having problem activating the USER AUthentication. It show me 403 Forbidden. I'll just list down the things taht I have done: First of all I made a .htaccess file under /usr/local/apache/htdocs/admin AuthFile /etc/.htpasswd AuthGroupFile /dev/null AuthName dhaval Authtype basic <Files useradd.php> Order Deny,Allow Deny From All Allow From localhost Require user dhaval Satisfy any </Files> Then I added the following lines in the httpd.conf file under /usr/local/apache/conf/httpd.conf <Directory /usr/local/apache/htdocs/admin> AuthName "Members Only" AuthType basic AuthFile /etc/.htpasswd require valid-user </Directory> Then I activated the following: htpasswd -c /etc/.htpasswd dhaval then I did the following: htpasswd -c /usr/local/apache/htdocs/admin/.htaccess dhaval But Now the problem is that Whenever I try the following: http://127.0.0.1/admin I get a Login Prompt I type my username and password but doesn't work Says Authorisation Failure Retry? 403 Forbidden Can u help me out guyz..? When I gave the command: htpasswd -c /etc/.htpasswd dhaval It said that it couldn't open the file for write.. fopen and something something.. So I created the file manually under /etc/.htpasswd Could this be the problem..If yes..what should I do.. Thanx a lot! for ur time in reading this email..I know taht it's a long one but had to explain everything. Thanx once again Cheers!~ Dhaval Desai __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/

« previous php.general (#22317) next »