-install php5.6
#yum install mysql-devel gcc wget
download php5.6 source
http://php.net/downloads.php
file name:. php-5.6.14.tar.gz
#tar xzvf php-5.6.14.tar.gz
#cd php-5.6.14.tar.gz
# ./configure --prefix=/usr/local/php \
--enable-fpm --enable-gd-native-ttf --enable-gd-jis-conv --enable-soap \
--enable-zip --enable-pcntl --enable-sockets --enable-mbstring --enable-xml \
--with-bz2 --with-openssl --with-iconv --with-zlib --with-curl \
--with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt \
--with-mysql --with-mysqli
#make
#make install
-configure php-fpm
#cd /usr/local/php/etc
#cp php-fpm.conf.default php-fpm.conf
#cd ..
#cd sbin/
#./php-fpm
#vim /usr/local/php/etc/php-fpm.conf
remove (;) before these word:
user = nobody
group = nobody
Check version of php 5.6
#/usr/local/php/bin/php -v
PHP 5.6.2 (cli) (built: Oct 22 2015 15:24:42)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies