最近配了个阿里云的服务器,系统是Ubuntu 14.04 64位,使用军哥的lnmp一键包,PHP 5.6.9,nginx/1.8.0php-fpm 状态:service php-fpm status
php-fpm (pid 4111) is running...
php-fpm.conf
[global]
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice[www]
#listen = /tmp/php-cgi.sock
listen = 9000;
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 6
request_terminate_timeout = 100
request_slowlog_timeout = 0
slowlog = var/log/slow.logphp.ini的cgi配置
cgi.fix_pathinfo=0enable-php.conf 
location ~ [^/]\.php(/|$)
        {
            try_files $uri =404;
    root /home/wwwroot;
            #fastcgi_pass  unix:/tmp/php-cgi.sock;
    fastcgi_pass  127.0.0.1;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_index index.php;
            include fastcgi.conf;
        }网站配置
server {
listen 80;
server_name studentxun.com  www.studentxun.com; access_log  /home/wwwlogs/access.log  access;
location / {
root /home/wwwroot/studentxun.com;
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ [^/]\.php(/|$) {
    root /home/wwwroot/studentxun.com;
            fastcgi_pass 127.0.0.1:9000;
    include fastcgi_params;
            fastcgi_index index.php;
            
    #fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}我之前又一个在香港的服务器,配置差不多的,没有问题,换到阿里云不知为啥就出问题了,检查也改了好多遍,求救!!!