如何安装php 5.3,apache-2.2 – 如何在CentOS上安装PHP 5.3?

用户试图在CentOS服务器上通过IUS和EPEL存储库安装PHP5.3,但遇到了与现有PHP5.1.6安装的文件冲突问题。在尝试使用yum install php53等命令时,系统的php-cli和php-common包与新版本的PHP产生冲突,导致安装失败。用户需要解决这些文件冲突以成功安装PHP5.3。
摘要由CSDN通过智能技术生成

我必须在我的CentOS服务器上安装

PHP 5.3.如果我做yum install php,基本存储库会安装5.1.6,这对于我需要安装的应用程序而言太旧了.所以我一直在尝试使用

IUS存储库,遵循IUS的官方说明:

root@linuxbox ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1-2.ius.el5.noarch.rpm

root@linuxbox ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-1-1.ius.el5.noarch.rpm

root@linuxbox ~]# rpm -Uvh ius-release*.rpm epel-release*.rpm

好.现在我只是为我所需要的所有yum安装php53等…但是我得到了这个错误:

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Check Error:

file /usr/bin/php from install of php53u-cli-5.3.4-3.ius.el5.x86_64 conflicts with file from package php-cli-5.1.6-27.el5_5.3.x86_64

file /usr/bin/php-cgi from install of php53u-cli-5.3.4-3.ius.el5.x86_64 conflicts with file from package php-cli-5.1.6-27.el5_5.3.x86_64

file /usr/share/man/man1/php.1.gz from install of php53u-cli-5.3.4-3.ius.el5.x86_64 conflicts with file from package php-cli-5.1.6-27.el5_5.3.x86_64

file /etc/php.ini from install of php53u-common-5.3.4-3.ius.el5.x86_64 conflicts with file from package php-common-5.1.6-27.el5_5.3.x86_64

Error Summary

-------------

我不知道如何解决这个问题.我想我必须删除基础包.但是,作为Linux新手,我不知道该怎么做.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值