LNMP One-click installation package PHP automatic upgrade script

Source: Internet
Author: User
Tags fpm

LNMP One-click installation package PHP automatic upgrade script

March 15, 2011 Morning | VPS Detective

Some time ago completed the LNMP one-click installation package PHP automatic upgrade script, released today, if you want to upgrade PHP version of LNMP users can try it. Supports all versions of the current LNMP.

Only a low version upgrade to a higher version cannot be degraded. Can be upgraded to the existing PHP 5.2.14 to PHP 5.3.5 in addition to 5.3.0, 5.3.1, 5.3.2 a few transitional versions of the PHP version, if PHP released a new version, only if the installation mode is not changed can be used all the time. Note: After upgrading PHP eaccelerator, Ioncube need to reinstall (you cannot use the script installed in lnmp0.6!!) )。

How to use the upgrade script:

Execution: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 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 that you upgrade to PHP5.3.*,PHP-FPM will be different from php5.2.*, PHP-FPM can automatically adjust the number of PHP-FPM processes by the amount of traffic you can adjust Pm.max_ The children value to increase or decrease the maximum number of processes for PHP-FPM.

Note: There may be some compatibility issues with some PHP programs after upgrading to php5.3.*. Upgrade is risky, the upgrade should be cautious, although the script will automatically back up the configuration files, it is recommended to upgrade before upgrading the best to back up.

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

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

If you have questions Welcome to the Forum Lnmp District feedback.

This article is original, declined reprint!

LNMP One-click installation package PHP automatic upgrade script

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.