ubuntu安装PHP环境

/ 0评 / 0

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx

 

sudo /etc/init.d/nginx start

 

sudo apt-get install php5-cli php5-cgi php5-fpm php5-mcrypt php5-mysql

 

sudo vi /etc/nginx/sites-available/default

“index index.html index.htm index.php;”

location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}

http://imcn.me/html/y2012/11833.html

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注