您好,欢迎访问一九零五行业门户网

nginx+PHP配置

sudo apt-get install lighttpd
spawn-fcgi -a 127.0.0.1 -p 9000 -c 5 -u www-data -g www-data -f /usr/bin/php-cgi
location ~ .*\.(php|php5)?${    #fastcgi_pass unix:/tmp/php-cgi.sock;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param script_filename    $document_root$fastcgi_script_name;  添加此行即可
    #include fcgi.conf;
}
其它类似信息

推荐信息