Installing LIB Libraries
Yum install zlib-devel libxml2-devel libjpeg-turbo-devel freetype-devel libpng-devel gd-devel-y
Download Libiconv Package
wget Http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gztar XF LIBICONV-1.14.TAR.GZCD libconv-1.14./configure --prefix=/usr/local/libiconvmakemake Install
Set Epel source
Wget-o/etc/yum.repos.d/epel.repo
Install the Libmcrypt library, install the encryption extension Library Mhash, install the MCrypt extension Library, install the Libxstl-devel
Yum install libmcrypt libmcrypt-devel mhash mhash-devel mcrypt libxstl-devel-y
PHP Compiler Instructions
./configure--prefix=/application/php5.3.27--with-mysql=/application/mysql--with-iconv-dir=/usr/local/libiconv- -with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-xml--disable-rpath-- Enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl-- With-curlwrappers--enable-mbregex--enable-fpm--enable-mbstring--with-mcrypt--with-gd--enable-gd-native-ttf-- With-openssl--with-mhash--enable-pcntl--enable-sockets--with-xmlrpc--enable-zip--enable-soap-- Enable-short-tags--enable-zend-multibyte--enable-static--with-xsl--with-fpm-user=nginx--with-fpm-group=nginx-- Enable-ftp
Create a soft connection before make, or you may have an error
Ln-s/application/mysql/lib//libmysqlclient.so.18/usr/lib64makemake Install
Create a soft connection to PHP
Ln-s/application/php.5.3.27/application/php
Configure the php.ini file (copy the INI file template from the installation directory.) The end is development is used for development, production is used in the production environment)
CD ~/PHP.5.3.27CP Php.ini-production/application/php/lib/php.ini
Configure PHP Service (fastcgi mode) configuration file php-fpm.conf
CD/APPLICATION/PHP/ETCCP Php-fpm.conf.default php-fpm.conf
Start PHP-FPM After modifying the necessary parameters
/application/php/sbin/php-fpm
Check the starting process (one master process, 16 sub-processes, configured in php-frm.conf)
Ps-ef|grep php-fpm|grep-v grep #查看进程ps-ef|grep php-fpm|grep-v grep|wc-l #检查进程数
View port (port default 9000)
Netstat-lntup|grep Php-fpmss-lntup|grep PHP-FPM
PHP Enterprise Practical Installation Steps