Yum install gcc gcc+ libxml2-devel//Compile support
Yum Install Epel-release//Expansion Pack update package does not execute
Yum Update//update yum source does not execute
Apache 2.4.29 installation
Http://mirrors.hust.edu.cn/apache//httpd/httpd-2.4.29.tar.gz
Cc= "PGCC" cflags= "-o2"./configure--prefix=/usr/local/httpd--enable-ldap=shared--enable-lua=shared
Make
Make install
PHP configuration after successful installation
httpd.conf Configuration
Add AddType application/x-httpd-php. PHP 56 Rows or so
DirectoryIndex index.html changed to DirectoryIndex index.html index.php
Add PHP Extensions
LoadModule Php7_module modules/libphp7.so
php7.2.1 Installing-total
PHP Dependent Environment
Yum install libxml2 libxml2-devel OpenSSL openssl-devel bzip2 bzip2-devel libcurl libcurl-devel libjpeg libjpeg-devel LIBP ng libpng-devel freetype freetype-devel GMP gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt libxslt-d Evel
php7.2.1 installation
TAR-ZXVF * *--Extract PHP source file package
./configure--PREFIX=/USR/LOCAL/PHP7--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP7--enable-fpm--with-fpm-user=nginx-- With-fpm-group=nginx--enable-inline-optimization--disable-debug--disable-rpath--enable-shared--enable-soap-- With-apxs2=/usr/local/httpd/bin/apxs--with-xmlrpc--with-openssl--with-mhash--with-pcre-regex--with-sqlite3-- With-zlib--enable-bcmath--with-iconv--with-bz2--enable-calendar--with-curl--with-cdb--enable-dom--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-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-xsl--enable-zip--enable-mysqlnd-compression-support--with-pear--enable-opcache
Make
Make install
Configuration file
CP Php.ini-production/usr/local/php7/php.ini
Or
CP Php.ini-development/usr/local/php7/lib/php.ini
Linux under the source to build lap environment