Unzip the installation
Tar zxvf php-7.1.3.tar.gz
CD php-7.1.3
Installation
./configure \
--prefix=/usr/local/php \
--with-config-file-path=/usr/local/etc/\
--ENABLE-FPM \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--ENABLE-SOAP \
--with-libxml-dir \
--WITH-XMLRPC \
--WITH-OPENSSL \
--with-mcrypt \
--with-mhash \
--with-pcre-regex \
--with-sqlite3 \
--with-zlib \
--enable-bcmath \
--with-iconv \
--WITH-BZ2 \
--enable-calendar \
--with-curl \
--WITH-CDB \
--enable-dom \
--ENABLE-PCNTL \
--ENABLE-EXIF \
--enable-fileinfo \
--enable-filter \
--with-pcre-dir \
--ENABLE-FTP \
--WITH-GD \
--with-openssl-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-freetype-dir \
--ENABLE-GD-NATIVE-TTF \
--enable-gd-jis-conv \
--with-gettext \
--WITH-GMP \
--with-mhash \
--enable-json \
--enable-mbstring \
--enable-mbregex \
--enable-mbregex-backtrack \
--WITH-LIBMBFL \
--with-onig \
--ENABLE-PDO \
--WITH-MYSQLI=MYSQLND \
--WITH-PDO-MYSQL=MYSQLND \
--with-zlib-dir \
--with-pdo-sqlite \
--with-readline \
--enable-session \
--ENABLE-SHMOP \
--enable-simplexml \
--enable-sockets \
--ENABLE-SYSVMSG \
--enable-sysvsem \
--ENABLE-SYSVSHM \
--ENABLE-WDDX \
--with-libxml-dir \
--with-xsl \
--enable-zip \
--enable-mysqlnd-compression-support \
--with-pear \
--enable-opcache
There may be many components that are not installed, follow the prompts to install, and finally make && make install
mysql5.6 Yum Installation
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
RPM-IVH mysql-community-release-el7-5.noarch.rpm
Run yum clean all && yum Makecache
Yum-y Install Mysql-community-server
Service mysqld Start
Start MySQL and change the password
Mysql-u Root
Use MySQL;
Update user Set Password=password ("Enter the root user password here") where user= ' root ';
Flush privileges;
PHP Version 7 installation configuration