您的位置:首页 > 编程语言 > PHP开发

ubuntu安装phpmyadmin注意事项

2015-12-22 12:26 459 查看
ubuntu安装phpmyadmin网上很多教程,不过有一步是没有注意的,打开"http://localhost/"显示如下


Apache2
Ubuntu Default Page

It works!

This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means
that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your
HTTP server.

If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator.

根据提示应该将网页或者链接放到/var/www/html目录下,查看“/etc/apache2/sites-enabled/000-default.conf”中的DocumentRoot,也的确是"/var/www/html",而不是像网上很多帖子说的/var/www目录下(老版本的确放在/var/www目录下)

$ cd /var/www/html
$ sudo ln -s /usr/share/phpmyadmin phpmyadmin

注:当然也可以通过改000-default.conf来设置。
此时打开“http://localhost/phpmyadmin”就可以看到登陆页面了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: