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”就可以看到登陆页面了
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”就可以看到登陆页面了
相关文章推荐
- php unserialize报错解决记录
- PhpStorm, XDebug, and DBGp Proxy
- vsFTP 加密传输-自生存证书
- FragmentPagerAdapter+ViewPager 笔记
- PHP验证类
- PHP常用的正则表达式
- 几款常用PHP开发工具
- PHP 7.0 升级备注
- php ip地址转换整数,整数转换地址
- Ubuntu12.04与win7主机方便传文件的实现方法(cuteftp的安装和遇到的问题的解决)
- Php开发完全跨站点跨域名单点(SSO)同步登录和注销
- PHP使用mkdir创建多级目录的方法
- PHP按指定键值对二维数组进行排序的方法
- Busybox下tftp命令使用详解
- php删除数组中重复元素的方法
- ThinkPHP+swfupload多图上传实例 经典实用的php多图上传
- 在 Ubuntu 上安装世界上最先进的开源数据库 PostgreSQL 9.4 和 phpPgAdmin
- 在 Ubuntu 上安装世界上最先进的开源数据库 PostgreSQL 9.4 和 phpPgAdmin
- PHP 常用的header头部定义汇总
- ThinkPHP 图片上传接口类