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-
----------------------- turn on php-fpm slow script logRequest_slowlog_timeout = 30sSlowlog =/usr/local/php/var/log/php-fpm.log.slowTypical log content is as follows:[15-apr-2012 20:56:19] [Pool www] pid 9748Script_filename =/var/www/html/htdocs/www.xxx.com/xxx.php[0x00000000090bc270] file_get_contents ()/var/www/html/htdocs/www.xxx.com/xxx.php:81Slow script files, specific lines, functions and so on are all very detailed records, the optimization of
This article provides a detailed analysis of the php-fpm parameters. For more information, see
Ps aux | grep php-fpm | moreView the total number of php-fpm instances
Php-fpm.conf configuration
Pid string
PID file location. the default value is null.
Error_log string
Location of the error log. default: Installation Path # INSTALL_PREFIX #/log/php-fpm.log.
Log_leve
Fault detection1. Other first, top look at the CPU, RAM, swap which is more tense.By analysis, you can see a total of 602 processes, of which 601 processes hibernate. This seems to be something wrong, the kernel process is about 80, plus memcached, Nginx, mysqld, will not exceed 90. In addition to these, only php-fpm management of the php-cgi, is it ...?CPU display, CPU pressure is not big, can say no pressure. We looked at the memory usage profile ag
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
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: Linux2. Compile and install: Referenceswget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gzTar zxvf webbench-1.5.tar.gzCD webbench-1.5Make make install3. Use:ReferenceWebbench-c 10000-t http://127.0.0.1/test.jpgparameter Description:-C for
This article provides a detailed analysis of the php-fpm parameters. For more information, see
Ps aux | grep php-fpm | moreView the total number of php-fpm instances
Php-fpm.conf configuration
Pid string
PID file location. the default value is null.
Error_log string
Location of the error log. default: Installation Path # INSTALL_PREFIX #/log/php-fpm.log.
Log_leve
This article mainly introduces the installation configuration php-fpm to build nginx+php production environment method, PHP-FPM role is to integrate FASTCGI process management into the PHP package, the need for friends can refer to the next
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 t
Comparison of CGI, FastCGI, php-CGI, PHP-FPM, and Spawn-FCGI in PHP environment configuration ?. What is CGICGI? it is a tool called "CommonGatewayInterface". the HTTP server is used to "talk" with programs on your or other machines. The program must run in
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 i
PHP-FPM Chroot execution environment details, php-fpmchroot details. PHP-FPM Chroot execution environment detailed explanation, php-fpmchroot detailed explanation in the PHP-FPM set up chroot, has a good isolation effect, improve the system security, but to establish a reasonable PHP-FPMChr PHP-FPM Chroot execution env
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 used after compiling and installing PHP. Now we can download in the latest PHP 5.3.2 source tree to directly integrate the PHP-FP
Build LNMP today when installed PHP-FPM appeared a problem for one hours finally solved the problem, make the next record convenient for everyone to check although very small pediatric. Environment: The Redhat 7.2 version of the Yum source is also 7.2 iso [[emailprotected] lnmp_soft]# yum-y install php-fpm-5.4.16-42.el7.x86_64. RPM Loaded plugins: LangPacks, Product-id, Search-disabled-repos, Subscription
PHP-FPM installation is simple, see PHP (PHP-FPM) manual compilation installation. The following is mainly about how to improve the performance of NGINX+PHP-FPM.
1.Unix domain Socket communication
A brief introduction to UNIX domain socket this way of communication, see: NGINX+PHP-FPM Socket Configuration method
UNI
.rpmmhash-0.9.9-1.el5.centos.i386.rpmmhash-devel-0.9.9-1.el5.centos.i386.rpmmcrypt-2.6.8-1.el5.i386.rpm
It is best to install the RPM package above using the upgrade method, which is as follows:# RPM-UVHIn addition, can also be installed according to the needs of libevent, the system will generally bring libevent, but the version is somewhat low. So you can upgrade the installation, which contains the following two RPM packages.libevent-2.0.17-2.i386.rpmlibevent-devel-2.0.17-2.i386.rpmDescriptio
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? 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, output, and environment variables. Such as php, perl, and tcl.
What is FastCGI?
FastCGI is like a long-live CGI. it can be executed all the time, it
Problem description: The boss told me a problem they encountered two days ago. php started with fastcgi and opened the slowlog. When fsockopen was called to read a connection, when the connection exceeds the slowlog setting time, the fpm process throws a warning to record some basic information about the full request. Detailed description
Problem description: The boss told me a problem they encountered two days ago. php started with fastcgi and opened
https://segmentfault.com/q/1010000000256516I check the relationship between FastCGI and php-fpm on the Internet, check for a week, the basic look at the times, it is very divergent opinions, there is no authoritative definition.Online some say, fastcgi is a protocol, PHP-FPM realize this agreement, some say, PHP-FPM is fastcgi process Manager, used to manage the
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.