目录

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

1 安装MYSQL

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

2 安装Apache

1
sudo apt-get install apache2

3 安装PHP

1
2
3
sudo apt-get install php5
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql

4 安装phpmyadmin

1
2
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

1
2
$cfg['Servers'][$i]['nopassword'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

中的false改为ture