今天想說要將phpMyAdmin能有登入的方式
而不是直接就連到網頁
所以想說用htpasswd -c .htpasswd sqlroot
cat .htpasswd如下
sqlroot:wpp/ycJ3Ma5qQ
然後再到/var/www/phpMyAdmin下
vi .htaccess
內容如下
AuthName "phpMyAdmin login"
AuthType Basic
AuthUserFile /var/www/phpMyAdmin/.htpasswd
require user sqlroot
可是出現登入畫面,怎麼輸入都沒有辦法登入
而且出現
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Apache/1.3.29 Server at localhost Port 80
不知有沒有碰過這樣的問題呢?
麻煩各位了~~~~謝謝