How to upgrade PHP

Source: Internet
Author: User
Tags exit ini mysql versions zend

Upgrade PHP to 5.3.8fengephp 5.3.8fenge a few days before upgrading the MySQL and PHP versions under Centos5.6 for Mysql5.5 and php5.3. The upgrade process is basically smooth, there is no big problem, the following do a simple record, for later use.
The first step: Use the command yum list mysql PHP check the standard yum source has MySQL and PHP available new version, found that the standard Yum source has not been updated.
Step two: Look for other sources. Find http://download.fedora.redhat.com/pub/epel/5/i386/Some libraries can be used. Execute the following command:
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-7.el5.remi.noarch.rpm
RPM-UVH remi-release-5-7.el5.remi.noarch.rpm epel-release-5-*.noarch.rpm
Step three: Edit/etc/yum.repos.d/remi.repo
#vi/etc/yum.repos.d/remi.repo
At the end of this file, add one line: Priority=1
Save exit.
Fourth step: Edit/etc/yum.repos.d/epel-testing.repo,
#vi/etc/yum.repos.d/epel-testing.repo
At the end of this file, add one line: Priority=1
Save exit.
Fifth Step: Edit/etc/yum.repos.d/epel.repo
#vi/etc/yum.repos.d/epel.repo
At the end of this file, add one line: Priority=1
Save exit.
Step sixth: Use yum--enablerepo=remi list MySQL php to check if there is an upgradeable version. There are versions that can be upgraded to mysql5.5.11 and php5.3.6.
Seventh Step: Use the command yum--enablerepo=remi update MySQL upgrade, upgrade MySQL will upgrade PHP, some prompts me to choose Y, until the end of the upgrade. The entire process contains downloads, installations.
Eighth step: MySQL after the upgrade of the configuration:
1, upgrade the completion of MySQL, the original my.cnf has not been appropriate, now will be/etc/my.cnf backup, and then/etc/my.cnf.rpmnew modified to/ETC/MY.CNF.
2, upgrade and repair table one adaptation new version: Mysqlcheck–all-databases–check-upgrade–auto-repair-p
Nineth Step: Zend Optimizer already does not support PHP5.3, need to install Zend Guard Loader. Perform the following command to install in sequence:
wget www.myacg.pp.ru/ZendGuardLoader.so
Mkdir-p/usr/local/zend
MV zendguardloader.so/usr/local/zend/
Vi/usr/local/lsws/lsphp5/lib/php.ini
Then modify the php.ini:zend_extension=/usr/local/zend/zendguardloader.so
So far, done, restart Mysql,apahe on it.



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.