Web Hosting Talk







View Full Version : .htaccess


WALoeIII
10-31-2002, 02:08 AM
I'm having problems with .htaccess password protection. I'm trying to password protect my phpMyAdmin installation.

In .htaccess I have: AuthUserFile /var/www/html/phpMyAdmin/.htpasswd
AuthGroupFile /dev/null
AuthName phpMyAdmin
AuthType Basic

<Limit GET>
require user root
</Limit>

Then in .htpasswd I have:root:myencryptedpasswordhere

When I go the the webpage for phpMyAdmin I don't even get an access box, it just loads the page as if the .htaccess file didn't exsist.

In httpd.conf I have: AccessFileName .htaccess which in theory should call the access file.

x222943
10-31-2002, 02:27 AM
if you read the phpmyadmin manual, it tells you how to setup http auth using phpmyadmin... check the config file and set the auth to http... then setup the select only user like it says, and set that in the config file also... no need for .htaccess...

WALoeIII
10-31-2002, 02:39 AM
Great, overlooked that feature, exactly what I was looking for :)