php-5.4 Upgrade to php7.2

Source: Internet
Author: User
Tags fpm soap

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

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.