PHP7 integrates the Fastcgi
The startup item becomes PHP-FPM.
The first thing to do is to install the dependent libraries needed for PHP
Yum-y Install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-defel libxml2 libxml2-devel pcre-devel Curl-dev El Libxslt-devel
Download PHP
wget HTTP://PHP.NET/DISTRIBUTIONS/PHP-7.0.23.TAR.XZ
Extract
Xz-d PHP-7.0.23.TAR.XZ
Split Package
Tar xvf php-7.0.23.tarcd php-7.0.23
Compile-specific configuration options Google Baidu query is explained
#./configure--prefix=/usr/local/php \--sbin-path=/usr/sbin/php \--bin-path=/usr/bin/php \--with-curl \-- With-freetype-dir \--with-gd \--with-gettext \--with-iconv-dir \--with-kerberos \--with-libdir=lib64 \--with-libxml- DIR \--with-mysqli \--with-openssl \--with-pcre-regex \--with-pdo-mysql \--with-pdo-sqlite \--with-pear \--with-png -dir \--with-xmlrpc \--with-xsl \--with-zlib \--enable-fpm \--enable-bcmath \--enable-libxml \--enable-inline-optim ization \--enable-gd-native-ttf \--enable-mbregex \--enable-mbstring \--enable-opcache \--enable-pcntl \--ENABLE-SHM OP \--enable-soap \--enable-sockets \--enable-sysvsem \--enable-xml \--enable-zip
Note: "Notice in the configuration whether there are errors and missing dependencies, if any, add it yourself"
Compiling the installation
Make&&make Install
Configuration file CP
PHP-FPM Reference File
Cp/usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
Move the PHP-FPM boot to the INIT.D boot
Cp-r./SAPI/FPM/PHP-FPM /ETC/INIT.D/PHP-FPM
# php-v appears the following prompt is OK