PHP-FPM start parameters and important configuration of the detailed, this needless to say, do PHP development students need to use.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 Configuration/usr/local/php/sbin/
To agree on several directories
/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.iniFirst, the PHP-FPM start parameter
Copy Code code as follows:
#测试php-FPM Configuration
/usr/local/php/sbin/php-fpm-t
/usr/local/php/sbin/php-fpm
In the MeeGo handset 1.1 Development Environment [4] [5], we use the QtCreator tool to generate an rpm package. Let's look at the linux rpm package. For a software package, there are two rpm packages, one is *. rpm, one is *. src. rpm, we should package the source program, w
Label: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, if it is a PHP request, it is forwarded to the PHP interpreter for processing and returns the result to the client. If it is a static page, Nginx handles it itself and returns the result to the clie
PHP php-fpm NginxInstalling the Yum source RemiRPM-UVH http://mirrors.opencas.cn/epel/6/x86_64/epel-release-6-8.noarch.rpmRPM-IVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpmInstalling the SoftwareOne. PHP php-fpmPackages that use the Remi SourceYum--enablerepo=remi Install PHP php-fpmTwo. Installing NginxInstall Nginx Source (CENTOS6 system to install http://nginx.org/packages/centos/5/x86_64/RPMS/nginx-1.8.0-1.el5.ngx.x86_64.
unpackage the source code and compile and install it if the user uses the command:
Rpm -- rebuild vim-4.6-4.src.rpm # After installation is complete, the compiled executable files are repackaged into the i386.rpm RPM package.See: http://ftp.tsingpost.com/index.php/archives/379/ for detailed usage
3) network package installation
# RPMS-qpi http://mirrors.kernel.
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 . /Configure -- enable-fastcgi -- prefix =/data1/server/php-cgi -- with-gd -- with-jpeg-dir -- with-png-dir -- with-freetype-dir -- enable-mbstring -- with-mysql --
Background
Their server is a cloud server, the recent frequent php-fpm suspended animation state, hard disk and memory are relatively small, so the memory is often not enough, through the Linux command to view, found that the number of boot PHP-FPM process has more than 20, occupy nearly 1G of memory, The entire server is only 1.5G of memory, and finally through the PHP-
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, database use of MYSQL5, the largest table data has 800,000, the total database capacity of about 10G.The failure occurred immediately after the thought may be php-fpm
Previously installed PHP and PHP-FPM is a painful thing, after compiling a few hours, now recommended Yum to install, more convenient.System CentOS 6 RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpmRPM-UVH http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpmRPM-UVH http://repo.webtatic.com/yum/el6/latest.rpmInstall MySQLYum--enablerepo=remi install MySQL Mysql-serverIn
binary and source code packages are generated. If normal, rpmbuild Exits normally, at the same time, the corresponding RPM package will be generated in the RPMS directory and SRPMS directory.
You may also like the following content about RPM package creation:
How to quickly customize the binary kernel RPM package in CentOS
Getting started with creating an
CentOS installation mysql *. rpm prompt conflicts with file from package solution, centos. rpm
Install MySql 6.5 in CentOS 5.6
Decompress file: tar xvf MySQL-5.6.19-1.linux_glibc2.5.x86_64.rpm-bundle.tar
Release the following files:
MySQL-embedded-5.6.19-1.linux_glibc2.5.x86_64.rpmMySQL-devel-5.6.19-1.linux_glibc2.5.x86_64.rpmMySQL-shared-compat-5.6.19-1.linux_gl
The 1 FPM (FastCGI process Manager) replaces most of the additional features of PHP FastCGI and is useful for high-payload sites.Its features include:Support Smooth stop/ start advanced process management function, can work on different uid/gid/" slow log " -- Special features: Used to continue to perform time-consuming work in the background (input video conversion, statistical processing, etc.) after the request completes and refreshes the data; dy
(persistent connection) can work.fastcgi of the poorBecause it is multi-process, so consumes more server memory than CGI multithreading, php-cgi interpreter consumes 7 to 25 megabytes per process, multiplying this number by 50 or 100 is a large amount of memory.Nginx 0.8.46+php 5.2.14 (FastCGI) server under 30,000 concurrent connection, open 10 Nginx process consumes 150M memory (15M10=150m), open 64 php-cgi process consumes 1280M memory (20M 64=1280m), combined with the memory consumed by the
Php-fpm startup ?????? Php5.3.3 the source code starts to contain php-fpm. you don't need to fix it any more. you just need to unlock the source code and directly configure it, for php-fpm compilation parameters,-enable-fpm-with-fpm-user = www-with-
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.