yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libpng libpng-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-develncurses ncurses-deve curl curl-devel openssl openssl-devel gdbm-devel db4-devel libXpm-devel libX11-devel gd-devel pcre pcre-devel
tar zxvf php-5.6.8.tar.gz
cd php-5.6.8
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-MySQL --with-mysqli --with-zlib --with-libxml-dir --enable-xml --with-curl --with-jpeg-dir --with-png-dir --enable-fpm --with-gd --with-openssl --with-xmlrpc --enable-zip--with-freetype-dir
make && make install
tar zxvf php-5.6.8.tar.gz
cd php-5.6.8
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-MySQL --with-mysqli --with-zlib --with-libxml-dir --enable-xml --with-curl --with-jpeg-dir --with-png-dir --enable-fpm --with-gd --with-openssl --with-xmlrpc --enable-zip--with-freetype-dir
make && make install