Yum Installepel-*-yYum Install-Ywget Unzip GCC GCC-c++ MakeZlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel g libc Glibc-devel glib2 Glib2-develbzip2 bzip2-devel ncurses ncurses-devel Curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel OpenSSL openssl-devel OpenLDAP Open Ldap-devel Nss_ldap openldap-clients openldap-Serverswgethttp//ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gzTarZXF libiconv-1.14.Tar. GZCD Libiconv-1.14./configure--prefix=/usr Make Make InstallCD..wgethttp//php.net/distributions/php-7.0.0.tar.bz2Tar-JXVF php-7.0.0.Tar. BZ2CD php-7.0.0#./configure--prefix=/usr/local/php70--sysconfdir=/usr/local/php70/etc--with-config-file-scan-dir=/usr/local/php70/etc--enable-fpm--with-fpm-user=webadm--with-fpm-group=webadm--enable-mbstring-- Enable-sockets--enable-pcntl--enable-pdo--enable-mysqlnd--with-mysql=mysqlnd--with-mysqli=mysqlnd-- With-pdo-mysql=mysqlnd--enable-sysvshm--enable-shmop--with-jpeg-dir=/USR--with-freetype-dir=/USR--with-png-dir=/USR--with-zlib-dir=/USR--with-gd--with-openssl--enable-opcache--enable-Zip--enable-bcmath--enable-pcntl--enable-FTP--with-Curl./configure--prefix=/usr/local/php70--sysconfdir=/usr/local/php70/etc--with-config-file-scan-dir=/usr/local/php70/etc--enable-fpm--with-fpm-user=webadm--with-fpm-group=webadm--enable-mbstring-- Enable-sockets--enable-pcntl--enable-pdo--enable-mysqlnd--with-mysql=mysqlnd--with-mysqli=mysqlnd-- With-pdo-mysql=mysqlnd--enable-sysvshm--enable-shmop--with-jpeg-dir=/USR--with-freetype-dir=/USR--with-png-dir=/USR--with-zlib-dir=/USR--with-iconv=/usr/lib--with-gd--with-openssl--enable-opcache=no--enable-Zip--enable-bcmath--enable-pcntl--enable-FTP--with-Curl Make Make InstallCPphp.ini-production/usr/local/php70/etc/php.iniCPsapi/fpm/init.d.php-fpm/etc/init.d/php-FPMCPsapi/fpm/php-fpm.conf/usr/local/php70/etc/php-fpm.confCPsapi/fpm/www.conf/usr/local/php70/etc/php-fpm.d/WWW.CONFCD .sed-I.'S#short_open_tag = Off#short_open_tag = On#g'/usr/local/php70/etc/php.inichmod+x/etc/init.d/php-FPMwgethttp//nginx.org/download/nginx-1.9.7.tar.gzTar-ZXVF nginx-1.9.7.Tar. GZCD Nginx-1.9.7./configure--user=webadm--group=webadm--prefix=/usr/local/nginx--with-http_stub_status_module--with-Http_ssl_module Make; Make InstallCD..VI/usr/local/nginx/conf/nginx.conf ... location~\.php$ {root html; Fastcgi_pass127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_param script_filename $document _root$fastcgi_script_name; Include Fastcgi_params; }
Nginx PHP7 Configuration Standby