Nginx php-cgi PHP

Source: Internet
Author: User

/*************************************************************************** * 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.