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!!!!!