Nginx PHP7 Configuration Standby

Source: Internet
Author: User
Tags fpm sapi openldap

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.