CentOS5 install PHP5.3 using Yum

Source: Internet
Author: User
CentOS5 two ways to install PHP5.3 using Yum This article introduces how to upgrade php5.1 to the current mainstream version php5.3.php5.1 and php5.2 and above in CentOS5, new versions include json extensions. let's get started. use Yum to install PHP5.3 in a 32-bit CentOS5 system.

This article introduces how to upgrade php5.1 to the current mainstream version php5.3. php5.1 in CentOS5. *, which is different from php5.2 and later versions, such as the json extension added to the new version.

Let's start. take a 32-bit system as an example.

Method 1: Use remi and epel to upgrade php

[Step 1: install remi and epel sources]

# Download and install epel Source rpm-Uvh unzip-Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm


About epel:If you want to get RHEL's high-quality, high-performance, high-reliability, and easy-to-use (the key is free) software package update function, the EPEL (Extra Packages for Enterprise Linux) launched by the Fedora Project) this is exactly for you. EPEL (http://fedoraproject.org/wiki/EPEL) is a program built by the Fedora community to provide high-quality software packages for RHEL and derivative releases such as CentOS and Scientific Linux

Remi:The remi software source provides the latest software support for the old fedora version, and can also provide the latest software for Centos and RHEL.

[Step 2: install php]

# If php has been installed, use yum -- enablerepo = remi update php-* # If php has not been installed, use yum -- enablerepo = remi install php -*

**************************************** ************************** **************************

For more information, see CentOS5. use Yum to install PHP5.3.

Method 2: upgrade php with webtatic source

[Step1. install the webtatic source]

Rpm-Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
About webtatic: mainly provides the latest LAMP and other software sources, supports Cent OS5, 6. The source Cent OS 5.x can be php 5.2 or php 5.3.

[Step 2: install php]

Yum -- enablerepo = webtatic install php -*

**************************************** ****

* Author: Ye Wentao

* Link: CentOS5 two methods for installing PHP5.3 using Yum

* ***************** For reprinting, please indicate the source ***************


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.