nginx+php-fpm配置

1:启动php-fpm

/usr/loca/php-fpm/sbin/php-fpm

2:配置nginx

location ~ \.php$ {
root /opt/ganglia;

fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
#include fastcgi_params;
include fastcgi.conf;
}

posted @ 2012-11-20 23:35  出发一路向北  阅读(358)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示