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.