First Step: Install dependencies
[Email protected] ~]# yum-y install openssl-devel swig libjpeg-turbo libjpeg-turbo-devel libpng libpng-devel FreeType fr Eetype-devel libxml2 libxml2-devel zlib zlib-devel libcurl libcurl-devel libmcrypt-devel mhash-devel mcrypt-devel
Step two: Download the PHP program
[Email protected] src]# wget http://soft.51yuki.cn/php-5.6.33.tar.gz
Step three: Install the PHP program
[Email protected] src]# Tar XF php-5.6.33.tar.gz
[Email protected] src]# CD php-5.6.33
[Email protected] php-5.6.33]# Useradd www
[Email protected] php-5.6.33]#/configure--prefix=/usr/local/php-fastcgi--with-pdo-mysql=mysqlnd--with-mysqli= Mysqlnd--with-mysql=mysqlnd--with-jpeg-dir--with-png-dir--with-zlib--enable-xml--with-libxml-dir--with-curl-- Enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--enable-mbregex--with-openssl-- Enable-mbstring--with-gd--enable-gd-native-ttf--with-freetype-dir=/usr/lib64--with-gettext=/usr/lib64-- Enable-sockets--with-xmlrpc--enable-zip--enable-soap--disable-debug--enable-opcache--enable-zip-- With-config-file-path=/usr/local/php-fastcgi/etc--enable-fpm--with-fpm-user=www--with-fpm-group=www && Make && make install
Fourth Step: Configure PHP
[email protected] php-5.6.33]# CP Php.ini-production/usr/local/php-fastcgi/etc/php.ini
[Email protected] php-5.6.33]# cd/usr/local/php-fastcgi/etc/
[email protected] etc]# CP Php-fpm.conf.default php-fpm.conf
[email protected] php-5.6.33]# CP SAPI/FPM/INIT.D.PHP-FPM/ETC/RC.D/INIT.D/PHP-FPM
Cp:overwrite '/etc/rc.d/init.d/php-fpm '? Y
[Email protected] php-5.6.33]# chmod u+x/etc/init.d/php-fpm
Fifth step: Start PHP
[[Email protected] php-5.6.33]# service PHP-FPM start
Starting php-fpm Done
[Email protected] php-5.6.33]# SS-TUNLP|GREP 9000
TCP LISTEN 0 10.100.100.105:9000 *:* Users: (("php-fpm", 3166,7), ("PHP-FPM", 3167,0), ("PHP-FPM", 3168,0))
Http://soft.51yuki.cn/php-5.6.33.tar.gz
On the centos6.8 system, install the deployment php-5.6.