Install MCrypt:
Yum install-y php-mcrypt Libmcrypt libmcrypt-devel
Upgrade Bison:
CD/var/soft/wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gztar-xvzf bison-2.6. 4 . tar.gz CD Bison-2.6. 4 . /&& make install
Upgrade RE2C, fix you'll need re2c 0.13.4 or later if you want to regenerate PHP parsers. Error:
CD/var/soft/wget http://sourceforge.net/projects/re2c/files/re2c/0.13.5/ Re2c-0.13.5.tar.gz/downloadtar zxf re2c-0.13. 5. tar.gz && cd re2c-0.13. 5 . /&& make install
Compile PHP7:
-P/var/soft//var/soft/php7# download source code git clone http://git.php.net/ Repository/php-src.gitcd php-src. /buildconf# configuration parameters. /configure
# Compile and install make && su does make install
To view the PHP version:
/usr/local/php7/bin/php-v
Output Result:
Original address: Http://www.hdj.me/php7-install-note?utm_source=tuicool
PHP7 installation steps under Linux