1

I have installed mysql-server 5.5 and phpmyadmin. It was working before but currently I am having Internal Server error for phpmyadmin.

In apache server error log following message is showing.

[Wed Jan 21 02:38:26.501839 2015] [authn_file:error] [pid 12948] (2)No such file or directory: [client 127.0.0.1:42201] AH01620: Could not open password file: /etc/phpmyadmin/.htpasswd

2 Answers2

1

To secure phpmyadmin a .htaccess was added containing following configuration

AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user

But didn't created the password. The password can be created using following command.

sudo htpasswd -c /etc/phpmyadmin/.htpasswd username
0

if /etc/phpmyadmin/.httpasswd exists then chmod +r /etc/phpmyadmin/.htpasswd else try to purge phpmyadmin package and install it again

Kamil Karkus
  • 1,283
  • 1
  • 11
  • 29