LNMP One-click installation package PHP Automatic Upgrade script method

Source: Internet
Author: User
Tags fpm

Only a low version upgrade to a high version cannot be demoted. You can upgrade to existing PHP 5.2.14 to PHP 5.3.5 in addition to 5.3.0, 5.3.1, 5.3.2 a few transition versions of the PHP version, if the PHP release of a new version, only the installation mode does not change can be used. Note: After you upgrade PHP eaccelerator, ioncube need to reinstall (can not use the lnmp0.6 in the script installation!!) )。

How to use the upgrade script:

Perform:

The code is as follows Copy Code
wget Http://soft.vpser.net/lnmp/upgrade_php.sh;/bin/bash upgrade_php.sh


Note: The version number must be entered correctly or the upgrade will fail!

The code is as follows Copy Code

The upgrade will be managed using/ETC/INIT.D/PHP-FPM {start|stop|quit|restart|reload|logrotate}.

PHP-FPM configuration file path is:/usr/local/php/etc/php-fpm.conf

The PHP configuration file path is:/usr/local/php/etc/php.ini

If the profile you upgraded to PHP5.3.*,PHP-FPM will be different from php5.2.*, PHP-FPM can automatically adjust the number of processes php-fpm by the amount of traffic that you can adjust Pm.max_ Children value to increase or decrease the maximum number of processes php-fpm.

Note: Some PHP programs may have compatibility problems after upgrading to php5.3.*. Upgrade is risky, upgrade should be cautious, although the script will automatically back up the configuration file, recommend the best to backup before upgrading.

5.4.* version is a beta beta test, production environment do not upgrade to 5.4.*.

Production environment Please be careful to upgrade!!!!!

Related Article

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.