如何使用centos中的yum安装php5.3

2023-05-07,,

本篇文章给大家分享的是有关如何使用centos中的yum安装php5.3,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

centos使用yum安装php5.3的方法是:首先执行【rpm -Uvh 源地址】命令下载并安装epel源及remi源;然后执行【yum --enablerepo=remi update php php-*】命令安装php即可。

本文以64位系统为例。

1、安装remi及epel源

#下载并安装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

2、安装php

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

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

异常:

Error: php53-common conflicts with php-common

解决方法:

yum reinstall php*

以上就是如何使用centos中的yum安装php5.3,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注本站行业资讯频道。

《如何使用centos中的yum安装php5.3.doc》

下载本文的Word格式文档,以方便收藏与打印。