I’d like to protect phpmyadmin with http basic auth.
So what was done:
- I added to file /etc/phpmyadmin/apache.conf
AuthType Basic AuthName "Restricted Access" AuthUserFile /usr/share/phpmyadmin/passwd Require valid-user
After that new password was generated
htpasswd -c /usr/share/phpmyadmin/passwd user
Apache was restarted
systemctl restart apache2 && systemctl status apache2
As a result I don’t see authorization window. Can anybody please help me, where is my error?