How to install and configure Nginx and PHP-fpm

How to install and configure Nginx and PHP-fpm

nginx itself cannot handle PHP. It is just a web server. When a request is received, if it is a PHP request, it will be sent to the PHP interpreter for processing and the result will be returned to the client. nginx usually sends the request to the fastcgi management process for processing. The fascgi management process selects the cgi sub-process processing result and returns it to nginx. This article uses php-fpm as an example to introduce how to make nginx support PHP 1. Compile and install php-fpm What is PHP-FPM PHP-FPM is a PHP FastCGI manager, which is only used for PHP and can be used in Download it from http://php-fpm.org/download. PHP-FPM is actually a patch of the PHP source code, designed to integrate FastCGI process management into the PHP package. It must be patched into your PHP source code, and it can be used after compiling and installing PHP. The new version of PHP has integrated php-fpm, which is no longer a third-party package. It is recommended to use it. PHP-FPM provides a better PHP process management method, which can effectively control memory and processes, and can smoothly reload PHP configuration. It has more advantages than spawn-fcgi, so…

How to install and configure Nginx and PHP-fpm

How to install and configure Nginx and PHP-fpm

nginx itself cannot handle PHP, it is just a web server, when a request is received, if it is a PHP request, it will be sent to the PHP interpreter for processing, and the result will be returned to the client. Nginx generally sends the request to the fastcgi management process for processing, and the fascgi management process selects the cgi sub-process processing result and returns it to be processed by nginx This article takes php-fpm as an example to introduce how to make nginx support PHP 1. Compile and install php-fpm What is PHP-FPM PHP-FPM is a PHP FastCGI manager for PHP only, available at http://php-fpm.org/download to download. PHP-FPM is actually a patch of the PHP source code, aiming to integrate FastCGI process management into the PHP package. It must be patched into your PHP source code, and it can be used after compiling and installing PHP. The new version of PHP has integrated php-fpm, it is no longer a third-party package, it is recommended to use. PHP-FPM provides a better PHP process management method, which can effectively control memory and process, and can smoothly reload PHP configuration. It has more advantages than spawn-fcgi, so it is officially included…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索