PHP 7 Installation 1. install the dependency Library first: http://www.osyunwei.com/archives/2708.html yum install make apr * autoconf automake curl-devel gcc-c ++ zlib-devel openssl-devel pcre-devel gd kernel keyutils patch perl kernel-headers compat * mpfr cpp glibc libgomp libstdc ++-devel ppl cloog-ppl keyutils-libs-devel libcom_err-devel libsepol-devel libselinux-devel krb5-devel zlib-devel libXpm * freetype libstjpeg * libpng * php-common php-gd ncurses * libtool * libxml2 libxml2-devel patch 2. libmcrypt freetype must be installed by source code.
Libmcrypt: http://mcrypt.hellug.gr/lib/
Freetype: http://sourceforge.net/projects/freetype/files/freetype2/2.5.3/
3. install bison
Cd/var/soft/
Wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gz
Tar-xvzf bison-2.6.4.tar.gz
Cd bison-2.6.4
./Configure
Make & make install
4. after processing other errors, start the formal installation, see: http://www.tuicool.com/articles/BR7Bza for details
Php7: https://downloads.php.net /~ AB/5. php5 installation tutorial: http://www.osyunwei.com/archives/2708.html