在安装phpmyadmin的时候,安装完毕通过浏览器访问(http://localhost/phpmyadmin/)出现错误:
The requested URL /phpMyAdmin was not found on this server.
该问题的解决方法是:
第一步:
- sudo dpkg-reconfigure -plow phpmyadmin
Then select Apache 2 for the webserver you wish to configure.
第二步:
If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:
- sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
- sudo /etc/init.d/apache2 reload
一般通过第一步重新选择apache2就能解决,如果不行,执行第二步的方法。
本文出自 “Bob” 博客,请务必保留此出处http://phpbob.blog.51cto.com/636017/647707