Protect PhpMyadmin by htaccess password

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
2,466
Location
UA
Hello,

I want to protect /var/www/html/PhpMyadmin did with password.
I have created .htaccess with:
AuthType Basic
AuthName "Protected Area"
AuthUserFile /var/www/html/pass/.htpasswd
Require valid-user
and with login/pass in htpasswd
It asks login/pass, accepts, then phpMyadmin asks database login/pass, after I entered it nothing happens, it shows endless page loading, when I rename htaccess and reload page - it opens logged in phpMyadmin. When I rename htaccess back and refresh page - it shows 500-error.
 
Last edited:
Back
Top