AMH4.2 Panel PHP Upgrade 5.6.9

Source: Internet
Author: User
I. Download and decompression PHP5.6.9
wget http://cn2.php.net/distributions/php-5.6.9.tar.gz
tar-zxvf  php-5.6.9.tar.gz
cd php-5.6.9
two. Compile PHP5.6.9

Compile the deployment (throw the above compilation script directly into the current SSH to perform the compilation.) )

./configure--prefix=/usr/local/php--enable-fpm--with-fpm-user=www--with-fpm-group=www--with-config-file-path=/ etc--with-config-file-scan-dir=/etc/php.d--with-openssl--with-zlib  --with-curl--enable-ftp--WITH-GD-- With-jpeg-dir--with-png-dir--with-freetype-dir--enable-gd-native-ttf--enable-mbstring--enable-zip /usr/local/libiconv--with-mysql=/usr/local/mysql--without-pear--disable-fileinfo--enable-opcache

Perform compilation (The process is longer and requires patience)

Make make
Install

three. Modify PHP configuration file modification/usr/local/php/etc/php-fpm.conf
Add Script Authorization

Listen.owner = www
listen.group = www
listen.mode = 0660

Modify/usr/local/php/etc/php-fpm-template.conf
Add Script Authorization

Listen.owner = www
listen.group = www
listen.mode = 0660

If an existing site
If you have a site in the AMH panel environment, you will need to add the 3-line script in the/USR/LOCAL/PHP/ETC/FPM directory, with the. conf file with the site's domain name marked. If there is no site does not need, because the template we added, the added new site will be automatically added.

Listen.owner = www
listen.group = www
listen.mode = 0660

four. Restart AMH and solve problems

There is a flaw in the successful upgrade, if we restart the VPS, Nginx is not effective, we need to restart a amh or restart Nginx before it can take effect.

/etc/init.d/amh-start
amh nginx Restart


Reference links

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.