ubuntu下lamp环境的搭建及phpmyadmin的安装配置

(1)安装MYSQL

sudo apt-get install mysql-server
sudo apt-get install mysql-client

(2)安装Apache

sudo apt-get install apache2

(3)安装PHP

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

(4)安装phpmyadmin

sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www

(5)phpmyadmin的配置

①允许空密码登陆

找到你的配置文件一般在usr share phpmyadmin libraries 下的config.default.php

终端执行

vim config.default.php

将$cfg[‘Servers’][$i][‘nopassword’] = false;
$cfg[‘Servers’][$i][‘AllowNoPassword’] = false;

中的false改为ture