Nginx and multi version Php configuration

This time, I didn't say anything, but really, through the rpm package, the PHP FPM of yum security, I was speechless.

A Php program code is tested everywhere, and the displayed menus are all OK, but only in the Php FPM of the official server, there are many menus missing.

I don't know if it's swelling. I checked the other causes N times, but there was no problem. Finally, I located PHP FPM.

Other environments are UPUW or manual installation, but the server is Yum installation.

So, I tried to install php by hand tonight. It's done.

Reference URL:

Pre installed list

yum -y install openssl
yum -y install openssl-devel
yum -y install curl
yum -y install curl-devel
yum -y install libjpeg
yum -y install libjpeg-devel
yum -y install libpng
yum -y install libpng-devel
yum -y install freetype
yum -y install freetype-devel
yum -y install pcre
yum -y install pcre-devel
yum -y install libxslt
yum -y install libxslt-devel
yum -y install bzip2
yum -y install bzip2-devel
yum -y install libxml2
yum -y install libxml2-devel

Parameters at compile time:

./configure --prefix=/usr/local/php7 --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-jpeg-dir --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip

Security and account work are done.

How to make this php and the installation of yum coexist?

There are two key points:

I. / usr / local / php7 / etc / PHP fpm.d/www.conf

listen =


2. Corresponding lines in nginx


Get it!

Tags: PHP yum OpenSSL curl

Posted on Fri, 01 Nov 2019 06:56:43 -0700 by hernan