ubuntu下 apache phpmyadmin 的安装和使用
// Apache
//Task: Start Apache 2 Server /启动apache服务
# /etc/init.d/apache2 start
//or
$ sudo /etc/init.d/apache2 start
//Task: Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2 restart
//or
$ sudo /etc/init.d/apache2 restart
//Task: Stop Apache 2 Server /停止apache服务
# /etc/init.d/apache2 stop
//or
$ sudo /etc/init.d/apache2 stop
// Mysql
/etc/init.d/mysql start
/etc/init.d/mysql stop
/etc/init.d/mysql restart
apache2默认的开发目录地址:/var/www
apache phpmyadmin 的安装和使用
1》安装apache:sudo apt-get install apache2
测试是否安装成功:在浏览器中输入localhost
如果安装成功了就会出现一个it works
新版本的可能不太一样,但是也有it works字样注意一下
2》安装php5:sudo apt-get install php5 libapache2-mod-php5
测试是否成功利用超级权限用户命令sudo gedit /var/www/html/testphp.php
在testphp。php里边任意写一行代码:<?php phpinfo(); ?>
然后输入网址:http://localhost/html/testphp.php
如果出现了php版本信息的界面就说明成攻了
这里我们看到了,这也就是我为什么要写这篇文章打原因,注意链接,根目录做了调整变为www/html了
接下来一切照常
3》安装mysql:sudo apt-get install mysql-server
安装过程中可能要你输入帐目的密码,这里不做要求了
测试mysql是否能用这里就不用多说了吧
直接mysql -u root -p
然后在里边做一些查询之类的
重点来了
安装phpmyadmin:sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
安装完成以后你会发现这里并不能正常用呢,输入http://localhost/phpmyadmin/提示该目录不存在
还是终端中输入:
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
这里我们得弄清楚了phpmyadmin的安装路径为:/usr/share/phpmyadmin
我们在这里进行链接说为了让phpmyadmin能够放在apache的文件目录下进行访问即:/var/www/html/phpmyadmin
重启一下apache:sudo /etc/init.d/apache2 restart
ubuntu下 apache phpmyadmin 的安装和使用的更多相关文章
- [转]:Ubuntu 下Apache安装和配置
[转]:Ubuntu 下Apache安装和配置_服务器应用_Linux公社-Linux系统门户网站 https://www.linuxidc.com/Linux/2013-06/85827.htm ...
- Linux下apache+phppgadmin+postgresql安装配置
Linux下apache+phppgadmin+postgresql安装配置 操作系统:CentOS 安装包:httpd(首选yum), php(包括php以及php-pgsql,php-mbstri ...
- Ubuntu下deb包的安装方法 (zz)
Ubuntu下deb包的安装方法 分类: Ubuntu10使用技巧 2010-10-11 23:49 42969人阅读 评论(3) 收藏 举报 ubuntudebdebianlinux deb是deb ...
- ubuntu下deb包的安装方法
ubuntu下deb包的安装方法 简介 deb是debian linus的安装格式,跟red hat的rpm非常相似,最基本的安装命令是:dpkg -i file.deb dpkg 是Debian P ...
- UBUNTU下Y86模拟器的安装和使用
UBUNTU下Y86模拟器的安装和使用 由于上周在虚拟机中安装Y86模拟器中出现了一些问题并且没得到解决,所以上周实验是在实验楼上做的,这几天练习了UBUNTU下Y86模拟器的安装和使用. 参考博客: ...
- Opencv 2.4.9在Ubuntu下的配置与安装
[原]Opencv 2.4.9在Ubuntu下的配置安装 Opencv 2.4.9在Ubuntu下的配置与安装 surgewong@gmail.com http://blog.csdn.net/su ...
- ubuntu下opencv2.4.9安装测试
ubuntu下opencv2.4.9安装测试 whowhoha@outlook.com 一.依赖包安装 1. build-essential 软件包 sudo apt-get install bui ...
- 【转】Ubuntu下deb包的安装方法
[转]Ubuntu下deb包的安装方法 deb是debian linus的安装格式,跟red hat的rpm非常相似,最基本的安装命令是:dpkg -i file.deb dpkg 是Debian P ...
- 转载:Ubuntu下deb包的安装方法
转载:Ubuntu下deb包的安装方法,http://blog.csdn.net/kevinhg/article/details/5934462 deb是debian linus的安装格式,跟red ...
随机推荐
- Augular初探
一年多前,巧遇angular,觉得是个非常优秀的mv*框架,当时项目使用了MooTools.因此也没继续研究.刚好最近,同事组中有用到ng,并且要做个分享.因此就将from Why Does Angu ...
- SQL 语句递归查询 With AS 查找所有子节点
create table #EnterPrise ( Department nvarchar(50),--部门名称 ParentDept nvarchar(50),--上级部门 Depar ...
- Linux中Nginx安装与配置详解 test(待整理 补全)
http://www.linuxidc.com/Linux/2016-08/134110.htm http://www.cnblogs.com/freeweb/p/5425554.html http: ...
- unity5 静态和动态cubmap
一,静态cubemap: asserts窗口 右键->Create->Legacy->Cubemap,新建一个cubemap,命名为cubeMap,然后为其各面指定贴图,如图: 需要 ...
- Android Studio项目迁移小结
近来试着使用Android Studio.确实有些功能远远甩开eclipse几条街,可是临时用起来还不够熟练,先对这两天做项目迁移的一点心得做点总结. 这里说的项目迁移,是指从eclipse环境下的项 ...
- [svc]Iaas Paas Saas区别
https://www.zhihu.com/question/20387284
- [na]vrrp两用(网关冗余+服务器热备)
VRRP的两种用途 早上想了想vrrp的使用,1,网关冗余 2,服务器热备 思想稍微有点不一样.主要在于监控口 服务器的话有心跳线,用户同步一些配置和迁移一些服务.达到热备的目的.:牵涉到四个优先级: ...
- [LeetCode][Java] Search Insert Position
题目: Given a sorted array and a target value, return the index if the target is found. If not, return ...
- ny55 懒省事的小明
懒省事的小明 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述 小明很想吃果子,正好果园果子熟了.在果园里,小明已经将所有的果子打了下来,而 ...
- python2 UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 7: ordinal not in range(128)
python在安装时,默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报这样的错UnicodeDecodeError: 'ascii' codec can't deco ...