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;
}