简体   繁体   中英

phpmyadmin .htpasswd file missing in ubuntu 14.04

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

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 

如果/etc/phpmyadmin/.httpasswd存在,则chmod +r /etc/phpmyadmin/.htpasswd否则尝试清除phpmyadmin软件包并重新安装

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM