Debian7 support Nginx and PHP interaction with PHP5-FPM

Source: Internet
Author: User
The last article tells the Debian7 installation Nginx + Mysql + PHP method, the reference of the article at that time a little outdated, so the choice of the PHP-CGI approach for Nginx and PHP interaction, after the netizens mention points found that the original version of PHP has built-in PHP interactive tool PHP5-FPM, so take time to change back. The method is simple. Modify the Nginx configuration as follows:

The last article tells the Debian7 installation Nginx + Mysql + PHP method, the reference of the article at that time a little outdated, so the choice of the PHP-CGI approach for Nginx and PHP interaction, after the netizens mention points found that the original version of PHP has built-in PHP interactive tool PHP5-FPM, so take time to change back. The method is simple. Modify the Nginx configuration as follows:

The last article tells the Debian7 installation Nginx + Mysql + PHP method, the reference of the article at that time a little outdated, so the choice of the PHP-CGI approach for Nginx and PHP interaction, after the netizens mention points found that the original version of PHP has built-in PHP interactive tool PHP5-FPM, so take time to change back.

The method is simple. You can modify the Nginx configuration as follows.

Location ~ \. Php $ {fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index. php; include fastcgi_params ;}

Original article address: Debian 7 with PHP5-FPM support Nginx and PHP interaction, thanks to the original author to share.

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.