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-*
异常:
立即学习“PHP免费学习笔记(深入)”;
Error: php53-common conflicts with php-common
解决方法:
yum reinstall php*
以上就是centos如何使用yum安装php5.3的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号