PHP-FPM configuration and usage summary, php-fpm configuration Summary
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
PHP-FPM configuration and use
Rotten mud: nginx, php-fpm, mysql user permission parsing, nginxphp-fpm
This article is first published in the dark world.
I learned how to build a wordpress blog under nginx a few days ago. In the article "dirty mud: Using nginx to build a
Php-FPM configuration in nginx tutorialNginx can directly call FPM to drive php and then discard apache. Let's not talk about the reason.First download the php5.4 installation package.According to others The code is as follows:Copy code .
PHP-FPM Configuration and Usage Summary:PHP-FPM is a PHP fastcgi manager, which is actually a patch of PHP source code, designed to introduce fastcgi process management into the PHP package, we have to patch it into the PHP source code, and then
502,504 errors often occurIdeas:
Increase the size and number of cache files when Nginx communicates with PHP-FPM
5 PHP-FPM processes are statically bound, reducing the overhead of the frequency start process
Using sock files
recently took over a PHP development project, has been trying to get a tool for the management of LVS, but has not been motivated to do, this time it is learning and for the convenience of future work. The development process encountered such a
This is my first blog post, in view of the interconnection, technology sharing spirit, think on the excitement!Let's do some dry work:)1, Copy the text when the cat and VI copied file format is not the same VI will have more empty line;2, GDB RC
Contract several directories/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.iniOne, the php-fpm start parameter#测试php-fpm配置/usr/local/php/sbin/php-fpm-t/usr/local/php/sbin/php-fpm-c /usr/local/php/etc/php.ini -y /usr/
Nginx itself cannot 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 return the results to the client.Nginx is generally the request to send fastcgi
To agree on several directories
/USR/LOCAL/PHP/SBIN/PHP-FPM
/usr/local/php/etc/php-fpm.conf
/usr/local/php/etc/php.ini
First, the PHP-FPM start parameter
#测试php-fpm
Nginx is a Web server, so nginx access logs will not have PHP error log information only for records that access the page.
Nginx to the PHP request to the PHP-FPM fastcgi process to deal with, the default php-fpm will only output PHP-FPM error
Turn from: https://www.zybuluo.com/phper/note/89081
In the previous few, I described in detail the various introductions of PHP-FPM, and the installation. Take a look at the various configurations of its profile php-fpm and some common
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
With NGINX+PHP7 set up a server, because the request is too large, and PHP has a suspended task, leading to php-fpm in the peak time often die, the PHP-FPM the largest number of processes have been changed to 1000, or unbearable, the CPU is also
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.