Ppa install php-fpm installation toolkit $ sudoapt-getinstallpython-software-properties add ppa source $ sudoadd-apt-repositoryppa: yola/php5 install php5-fpmsudoapt-getupdatesudoapt-getinstall & nb
Install php-fpm using ppa
Installation kit
$ Sudo apt-get install python-software-properties
Add ppa Source
$ Sudo add-apt-repository ppa: yola/php5
Install php5-fpm
Sudo apt-get update
Sudo apt-get install php5-fpm
Install other necessary software
Sudo apt-get install nginx
Configure php-fpm
The php-fpm parser is in the C/S structure, and its configuration file is located:
(1)/etc/php5/fpm/php-fpm.conf
(2)/etc/php5/fpm/pool. d/
Generally, there are no strict Configuration Requirements, or I have not specifically studied the significance of each configuration parameter.
I used the tcp mode to connect to the fastcgi process, so I modified the address and port of the tcp listener and the name of the monitoring directory. I will not explain it in detail here, you can refer to the official documentation for configuration based on your needs.
Restart php5-fpm