centos如何使用yum安装php5.3
centos使用yum安装php5.3的方法是:首先执行【rpm -Uvh 源地址】命令下载并安装epel源及remi源;然后执行【yum --enablerepo=remi update php php-*】命令安装php即可。
本文以64位系统为例。
(推荐教程:php教程)
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相关教程