1.Apache
sudo apt-get install apache2
2.php
sudo apt-get install php5 sudo apt-get install php5-mysql sudo apt-get install php5-curl
3.Apache权限
chown -R www-data:www-data /var/www
4.添加远程Mysql用户
grant all privileges on *.* to 创建的用户名 @"%" identified by "密码"; flush privileges; * 刷新刚才的内容*
5.重启Apache
sudo /etc/init.d/apache2 restart