high. And when the worker is not enough, master can pre-boot several workers according to the configuration and so on, of course, the idle worker too much, will also stop some, this improves the performance, also saves the resources. This is FastCGI's management of the process.
What is that php-fpm? is a realization of the FASTCGI program, by the PHP official received.
As we all know, PHP's interpreter is php-cgi. PHP-CGI is just a CGI
Linux environment: Debian 6 Stable
Program Version selection:
Nginx:tengine 1.2.4Taobao produced, based on Nginx and introduced a number of new features
mysql:5.1.66The latest version of the 5.1 series. The reason for not 5.5 is that 5.5 started compiling using CMake, and the data is relatively small. (In fact, Wangyan's script uses 5.5, but I haven't seen it yet ...). )
php:5.4.9A few days ago just out of the current stable, with FPM, and nginx w
LINUX-LNMP-PHP-FPM
The pool of PHP-FPM
PHP-FPM Slow Execution Log
Open_basedir
PHP-FPM Process Management
The pool of PHP-FPMDefine a pool of multiple php-fpm
Define multiple pool in the/usr/local/php-
Online there are various versions of the PHP-FPM boot automatic script, in fact, you compiled the source directory has generated automatic script. No modification is necessary.
CP {PHP-5.3.X-SOURCE-DIR}/SAPI/FPM/INIT.D.PHP-FPM/ETC/INIT.D/PHP-FPM
PHP-FPM Boot a
This article illustrates the comparison of php-fpm static and dynamic execution methods. Share to everyone for your reference, specific as follows:
Before the time to configure PHP-FPM, inadvertently found that he still has two ways of implementation. Like Apache, his number of processes can be divided into dynamic and static according to the settings.
And PHP-FPM
Brief introduction:
PHP-FPM is a PHP FastCGI manager, General Nginx run PHP program will be thrown to the PHP program php-fpm to resolve. All right, that's it!
PHP 5.4 began to integrate the PHP-FPM, that is, when compiling PHP, as long as--ENABLE-FPM installed the PHP-FPM
[Go to] find out the relationship between FastCgi and PHP-fpm, fastcgiphp-fpm. [Switch] find out the relationship between FastCgi and PHP-fpm. fastcgiphp-fpm: some people on the Internet say that fastcgi is a protocol, and php-fpm implements this protocol; some say, the php-
This article mainly introduces the PHP-FPM service startup script method, very good, with reference value, the need for friends can refer to the following
This is my own use, no problem, there are three paths need to modify their own discretion.
Create a self-boot file first:/etc/init.d/php-fpm
The contents are as follows:
#! /bin/sh### BEGIN INIT info# provides:php-f
What is PHP-FPM?The full name is the PHP fastcgi process Manager, the PHP fastcgi processes manager, which dynamically evokes the CGI process and destroys it to reach dynamic tuning CGI numbers compared to the fastcgi static arousal CGI,FPM, based on the pressure of the access. This allows for efficient use of memory. In addition, there are other advantages, such as FPM
Many articles say that mod_php cannot be shared with the Apache MPM worker or event, which may have been handed down in the Apache version 2.2 era. Since I compiled Apache 2.4 last year, I have been using the MPM event, and according to the parameters I compiled for PHP 5.5, I have made PHP a built-in module for Apache. Such a wonderful configuration existed more than a year later, I finally decided to transition from mod_php to PHP-FPM.Since the Apache 2.4.9, the configuration required for PHP-
Nginx PHP-FPM Installation Configuration
Nginx itself can not handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to the PHP interpreter processing, and the results returned to the client.
Nginx is generally the request to send fastcgi management process processing, FASCGI management process Select the CGI subprocess processing results and return to be Nginx
This article takes php-
Brief introduction:PHP-FPM is a PHP FastCGI manager, General Nginx above the PHP program will throw PHP program to PHP-FPM to parse. All right, that's it!PHP 5.4 began to integrate the PHP-FPM, that is, when compiling PHP, as long as the--ENABLE-FPM installed PHP-FPM.First, install the PHP-FPMShell >./configure--prefix
: This article mainly introduces the Nginx + PHP-FPM optimization skills summary, for PHP tutorials interested in students can refer.
1. Socket communication in Unix domainBefore a brief introduction of Unix Domain Socket communication method, see: Nginx + PHP-FPM Domain Socket configuration methodBecause the Unix domain Socket does not go through the network, it can indeed improve the communicatio
PHP-FPM is a PHP FastCGI manager, General Nginx above the PHP program will throw PHP program to PHP-FPM to parse. All right, that's it!PHP 5.4 began to integrate the PHP-FPM, that is, when compiling PHP, as long as the--ENABLE-FPM installed PHP-FPM.First, install the PHP-FPMshell > ./configure --prefix=/usr/local/php \
# in Nginx and PHP-FPM next visit Nginx on the instant 502 question Php-fpmsignal 7 (Sigbus)
Failure phenomenon
Use the tinkphp3.2.x frame, the page occasionally appear a visit Nginx on the report 502 bad Gateway, not wait for a period of time Nginx only reported 502, open the page of the moment on 502.
PHP-FPM Log
[28-sep-2015 23:25:07] WARNING: [Pool www] child 2965 exited on Signal 7 (Sigbus) after
Two kinds of process management modes in PHP-FPMThe number of PHP-FPM processes can also be divided according to the settings
Dynamic and StaticOf
One is to directly open a specified number of PHP-FPM processes, no longer increase or decrease;
The other is to start a certain number of php-fpm process, when the request is large, dynamic increase in the number of P
PHP-FPM optimization of php5.6
One. PHP-FPM three modes of operation OnDemand static dynamic http://blog.csdn.net/pzqingchong/article/details/53379772Two. The dialectical view about PHP parameter optimizationhttps://www.douban.com/note/315222037/Http://www.myhack58.com/Article/sort099/sort0102/2012/33364.htmThree. PHP-FPM optimization1.PHP-
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.