Download the installation package
Compiling the installation
1 # compile 2 ./configure--prefix=/alidata/server/php72--with-config-file-path=/ Alidata/server/php72/etc--enable-inline-optimization--disable-debug--disable-rpath--enable-shared-- Enable-opcache--enable-fpm--with-fpm-user=www--with-fpm-group=www--with-pdo-mysql=mysqlnd--with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd--with-gettext--enable-mbstring--with-iconv--with-mhash--with-openssl--enable-bcmath-- Enable-soap--with-libxml-dir--enable-pcntl--enable-shmop--enable-sysvmsg--enable-sysvsem--ENABLE-SYSVSHM-- Enable-sockets--with-curl--with-zlib--enable-zip--with-bz2--with-readline Span style= "COLOR: #008080" >3 # install Span style= "COLOR: #008080" >4 make && make install
Compile error
Undefined reference to ' Libiconv_open '
Solution Reference: https://www.cnblogs.com/52php/p/6197428.html
Re-compiling
./configure--prefix=/alidata/server/php72--with-config-file-path=/alidata/server/php72/etc-- Enable-inline-optimization--disable-debug--disable-rpath--enable-shared--enable-opcache--enable-fpm-- With-fpm-user=www--with-fpm-group=www--with-pdo-mysql=mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd-- With-gettext--enable-mbstring--with-iconv==/usr/local/libiconv--with-mhash--with-openssl--enable-bcmath-- Enable-soap--with-libxml-dir--enable-pcntl--enable-shmop--enable-sysvmsg--enable-sysvsem--ENABLE-SYSVSHM-- Enable-sockets--with-curl--with-zlib--enable-zip--with-bz2--with-readline
Configuration file
CP php.ini-development/alidata/server/php72/etc//alidata/server/php72/etc/php-fpm.conf.default/alidata /server/php72/etc/php-FPM.CONFCP SAPI/fpm/init.d.php-fpm/etc/init.d/php-fpm72
Add Execute Permissions
Chmod-x/etc/init.d/php-fpm72
PHP-FPM Configuration, reference https://www.cnblogs.com/kenshinobiy/p/7470674.html
Change the corresponding item listening port to 9001
php-5.4 Upgrade to php7.2