CentOS5 two ways to install PHP5.3 using Yum

Source: Internet
Author: User
CentOS5 two ways to install PHP5.3 using Yum

This article introduces the php5.1 upgrade to the current mainstream version of php5.3 in the centos5.* version. There are many differences between the php5.1 version and the php5.2 and above, such as JSON extensions added to the new version, and so on.

Let's start with a 32-bit system, for example.

Method 1: Upgrade PHP with Remi and Epel sources

"Step1: Install Remi and Epel source"

<textarea readonly="" name="code" class="plain">#下载并安装epel源rpm-uvh http://mirror.bjtu.edu.cn/fedora-epel//5/i386/epel-release-5-4.noarch.rpm# Download and install Remi Source RPM- UVH http://rpms.famillecollet.com/enterprise/remi-release-5.rpm</textarea>


about EPEL: If you want to get RHEL's high-quality, high-performance, high-reliability, and easy-to-use (key to free) package update functionality, Fedora Project launches EPEL (Extra Packages for Enterprise Linux) Just right for you. EPEL (Http://fedoraproject.org/wiki/EPEL) is a project built by the Fedora community to deliver high-quality software packages for RHEL and derivative distributions such as CentOS, scientific Linux, etc.

about Remi:The Remi Software source provides the latest software support for older versions of Fedora, as well as the latest software for CentOS and Rhel

"Step2: Install PHP"

<textarea readonly="" name="code" class="plain">#如果已经安装php, use the Yum--enablerepo=remi update php php-* #如果未安装过php, use the Yum--enablerepo=remi install PHP php-*</textarea>

Small Gap ****************************************************

reprint please indicate source CentOS5 two ways to install PHP5.3 using Yum

Method 2: Use the webtatic source to upgrade PHP

"Step1. Install webtatic Source"

<textarea readonly="" name="code" class="plain">RPM-UVH http://repo.webtatic.com/yum/centos/5/latest.rpm</textarea>
About Webtatic: The main supply of the latest lamp and other software sources, support cent os5,6. This source Cent OS 5.x can choose PHP 5.2 or PHP 5.3.

"Step2: Install PHP"

Yum--enablerepo=webtatic Install PHP php-*

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

* Author: Ye Wentao

* Link: CentOS5 two ways to install PHP5.3 using Yum

Reprint please indicate 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.