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
Nginx start stop php5.3.18 php-fpm start close configure to service start from php5.3.3 source code contains php-fpm, no need to fix it, just unlock the source code and directly configure, for php-fpm compilation parameters,-enable-fpm-with-fpm-user
The pool of PHP-FPM
To avoid using the same pool for multiple sites, a separate pool for each site needs to be configured if one site's traffic is too large to cause problems with resource exhaustion, which in turn affects the normal operation
[TOC]PHP-FPM configuration related one, PHP-FPM configuration
Unlike lamp, in the LNMP architecture, PHP-FPM as a standalone service exists, and since it is a standalone service, it must have its own configuration file. The PHP-FPM
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 .
First, the pool of PHP-FPM
The PHP-FPM configuration file php-fpm.conf can be set to multiple pool, where one pool resource is exhausted, causing other sites to be unable to access resources, reporting a 502 error. It is necessary to
The pool of PHP-FPMPHP-FPM configuration file php-fpm.conf can set multiple pool, in which one pool resource is exhausted, will cause other sites to not access resources, reported 502 error. It is necessary to separate the sites, using separate pool
I've been trying to deploy a PHP micro-service that uses Docker containers recently. One of the problems is that our PHP application is set up to work with PHP-FPM and nginx (not the simple apache/php[1] setting here), so each PHP microservices
PHP Programmer One, this environment is a personal note bar, posted out
Environment:
CentOS 5.5
The mirror address will not be posted.
php-5.4.20
Address: http://museum.php.net/php5/php-5.4.20.tar.gz
Mysql-5.. 5.48 (Universal binary format)
Address:
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.