ubuntu下Lamp配置

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

 

posted @ 2012-06-22 19:45  juven  阅读(127)  评论(0编辑  收藏  举报