/*************************************************************************** * Nginx php-cgi php * Description: * Due to the need for multiple Web access requirements, so choose to use Nginx to do port mapping, just start configuration * can not first PHP and FPM mode, because the cross-compiled PHP only select CGI, so the configuration process * encountered problems, there is no notice to be php-c GI runs just fine, before passing busybox httpd is * No need to do so. * 2016-9-26 Shenzhen Nanshan Ping Shan village Zengjianfeng ******************************************************* *******************/First, reference documents:1. Nginx-no input file specified. -PHP fast/CGI http://stackoverflow.com/questions/21377321/nginx-no-input-file-specified-php-fast-cgi 2. Resolve Nginx PHP"No input file specified"http://xiahongyuan.blog.51cto.com/906214/852424 3. nginx+php-the CGI configuration method describes http://blog.csdn.net/bookmoth/article/details/4568203 4. Configuring nginx+ under WindowsPHP Environment http://www.cnblogs.com/huayangmeng/archive/2011/06/15/2081337.htmlSecond, modify the nginx PHP configuration: server {Listen the; server_name localhost; Root/var/www/; Index index.html index.htm index.php; # Pass the PHP scripts to FastCGI server listening on127.0.0.1:9000 Location~\.php$ {fastcgi_pass127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_param Script_filename/Scripts$fastcgi_script_name; Include fastcgi.conf; Include Fastcgi_params; }} Third, start PHP-CGI:1. Php-cgi-b127.0.0.1:9000-c/etc/php.ini2. Boot from: Cat/etc/init.d/s51phpcgi Echo"Start php-cgi."PHP-cgi-b127.0.0.1:9000-c/etc/php.ini &
Nginx php-cgi PHP