How to use yum to install php5.3 on centos

王林
Release: 2023-03-03 07:10:02
Original
2714 people have browsed it

The method for centos to use yum to install php5.3 is: first execute the [rpm -Uvh source address] command to download and install the epel source and remi source; then execute [yum --enablerepo=remi update php php-* 】Command to install php.

How to use yum to install php5.3 on centos

#This article uses a 64-bit system as an example.

(Recommended tutorial: php tutorial)

1. Install remi and epel source

#下载并安装epel源
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm 
#下载并安装remi源
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
Copy after login

2. Install php

#如果已经安装php,请使用  
yum --enablerepo=remi update php php-*  

#如果未安装过php,请使用  
yum --enablerepo=remi install php php-*
Copy after login

Exception:

Error: php53-common conflicts with php-common
Copy after login

Solution:

yum reinstall php*
Copy after login

The above is the detailed content of How to use yum to install php5.3 on centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!