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