it's an old thread but since it's the same thing, I'll continue it.
This is from my phpMyAdmin.conf: <Directory /usr/share/phpMyAdmin/>
and this from .htaccess: AuthUserFile /usr/share/phpMyAdmin/.htpasswd
and: DocumentRoot "/var/www/html"
why isn't this working. The phpMyAdmin is installed by an rpm so the folder is not under the documentroot. Whenever I try to go into the webserver:
http://www.site.se/phpMyAdmin, the only thing I get is the password for phpMyAdmin, not the .htaccess password I've set up.
and another thing, which is the best, using the .htaccess/.htpasswd or put all new websites under some other physical place other then DocumentRoot and then create a '/etc/httpd/conf.d/site.conf' and use that file
- Code: Select all
<Directory /usr/share/phpMyAdmin/>
order deny,allow
deny from all
allow from 127.0.0.1
allow from 123.122.121.120
</Directory>