ubuntu安装phpmyadmin注意事项

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

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”就可以看到登陆页面了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值