Ubuntu14.04安装配置LAMP环境(php5.6)
sudo apt-get install python-software-properties
sudo apt-get update
sudo apt-get install vim
sudo apt-get install apache2
sudo apt-get install -y php5 //php -v 查看版本
sudo apt-get install mysql-server mysql-client //设置密码
sudo apt-get install mcrypt
sudo apt-get install php5-mcrypt
sudo apt-get install php5-gd //安装gd库 重启apache /etc/init.d/apache2 restart
sudo apt-get install php5-mysql
sudo apt-get update
sudo apt-get install vim
sudo apt-get install apache2
sudo apt-get install -y php5 //php -v 查看版本
sudo apt-get install mysql-server mysql-client //设置密码
sudo apt-get install mcrypt
sudo apt-get install php5-mcrypt
sudo apt-get install php5-gd //安装gd库 重启apache /etc/init.d/apache2 restart
sudo apt-get install php5-mysql
sudo apt-get install curl
sudo apt-get install wget
sudo apt-get install openssl
sudo apt-get install redis-server
chmod +x ./composer.phar sudo mv composer.phar /bin/composer //安装composer
ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load //开启伪静态