Ubuntu 配置Apache+PHP+MySQL

1.安装apache2.0

sudo apt-get install apache2

2.安装PHP

依次在终端打开:

sudo apt-get install php5 //安装PHP5

sudo apt-get install libapache2-mod-php5 //配置APACHE+PHP

sudo /etc/init.d/apache2 restart //重启APACHE

3.安装MYSQL

sudo apt-get install mysql-server

安装完成按提示设置root密码

4、让apache、php支持 mysql

sudo apt-get install libapache2-mod-auth-mysql

sudo apt-get install php5-mysql

sudo /etc/init.d/apache2 restart

上一篇:ubuntu安装水星MW150US无线网卡8188eu驱动


下一篇:Java Socket