The PHP-FPM is a phpfastcgi process manager and is for PHP only. The php-fpm is actually a patch of PHP source code designed to integrate FASTCGI process management into a PHP package. It must be patch into your PHP source code and can be
Php-fpm process shutdown and restart script details, php-fpm details
Let's first understand what is php-fpm
The PHP-FPM is a PHP FastCGI manager and is only for PHP.
PHP-FPM is actually a patch of PHP source code, designed to integrate FastCGI
1, the pool of PHP-FPM Edit Profile vim/usr/local/php/etc/php-fpm.conf, at which point only one pool is defined, the WWWYou can define multiple pool, listen to different addresses or sockets, and if you have multiple sites, you can use multiple
PHP-FPM is a phpfastcgi process manager and is for PHP only.php-fpm is actually a patch of PHP source code designed to integrate FASTCGI process management into a PHP package. It must be patch into your PHP source code and can be used after
What is CGI?
CGI stands for the Common Gateway Interface, which is a program running on a Web server. With browser input triggered, this script is usually like a bridge between a server and other programs in the system, such as a database.
CGI
Webbench can simulate up to 30,000 concurrent connections to test the load capacity of the website, the personal feeling is better than the AB pressure test tool with Apache, installation and use is particularly convenient. 1. Applicable system:
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
What is a CGI
The CGI full name is the "Public Gateway Interface" (Common Gateway Interface), a tool that HTTP servers "talk" to programs on your or other machines, and their programs must run on a network server.
CGI can be written in any
Webbench can simulate up to 30,000 concurrent connections to test the load capacity of the website, the personal feeling is better than the AB pressure test tool with Apache, installation and use is particularly convenient. 1. Applicable system:
What is CGI?
CGI is a common gateway interface. It is a tool for the HTTP server to "talk" with programs on your or other machines, the program must run on the network server.
CGI can be written in any language as long as it has standard input,
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-/usr/local/php/etc/php-fpm.conf// add include = ETC/PHP-FPM.D/* in the [Global] section . conf mkdir/usr/local/php/etc/php-fpm.d/cd/usr/local/php/etc/php-fpm.d/vim www.conf//content as follows [Www]listen =/tmp /www.socklisten.mode=666user = Php-
"Turn" to understand the relationship between fastcgi and PHP-FPM, FASTCGIPHP-FPM
Question: Online some say, fastcgi is a protocol, PHP-FPM realize this agreement, some say, PHP-FPM is fastcgi process Manager, used to manage the fastcgi process;
Server normal operation 2 months, the day before yesterday the whole station suddenly appeared 502 bad Gateway, all pages are not open, using the NGINX+PHP-FPM mode.Server situation: This server traffic is relatively large, PV around 300,000 per day,
In this article, we will specifically explain the configuration of Nginx, PHP-FPM, and MySQL running under individual users.First of all to do a description: Nginx itself can not handle PHP, it is just a Web server. When a client request is received,
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? In the php runtime environment configuration, which one is more suitable for websites.
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? In the php runtime environment configuration,
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
This article starts in the Slime row world. A few days ago study, under the Nginx build WordPress blog. In the article "Slime: Using Nginx to build WordPress blog", we specifically mentioned the user under which the program runs. In this article, we
Analysis of php-fpm static and dynamic execution methods, analysis of php-fpm
This article describes the comparison between static and dynamic execution methods of php-fpm. We will share this with you for your reference. The details are as
A master process that supports multiple pool, each of which listens to a different port by the master process, with multiple worker processes in the pool.Each worker process has a built-in PHP interpreter, and the process resides in the background,
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.