Apache-2.2
yum 依賴衝突 已安裝包
我想從 webtatic repo 安裝 php 5.6:
百勝安裝 php56w php56w-opcache php56w-mysql php56w-mcrypt php56w-pdo php56w-xml
依賴項之一是 httpd:
Installing for dependencies: httpd x86_64 2.2.15-31.el6.centos updates 824 k
我已經安裝了 apache 2.4。問題是apache的包名是httpd24-httpd
yum list installed | grep httpd httpd24.x86_64 1-6.el6 @epel-httpd24 httpd24-apr.x86_64 1.4.8-2.el6 @epel-httpd24 httpd24-apr-util.x86_64 1.5.2-5.el6 @epel-httpd24 httpd24-httpd.x86_64 2.4.6-5.el6 @epel-httpd24 httpd24-httpd-tools.x86_64 2.4.6-5.el6 @epel-httpd24 httpd24-runtime.x86_64 1-6.el6 @epel-httpd24
我怎麼能告訴 yum 你正在尋找的包實際上是
httpd24-httpd
而不是httpd
?問題是由於已經安裝了 httpd 2.4,所以無法安裝 httpd 作為依賴項:Transaction Check Error: file /etc/httpd/conf.d/README from install of httpd-2.2.15-31.el6.centos.x86_64 conflicts with file from package httpd24-httpd-2.4.6-5.el6.x86_64 file /etc/httpd/conf.d/welcome.conf from install of httpd-2.2.15-31.el6.centos.x86_64 conflicts with file from package httpd24-httpd-2.4.6-5.el6.x86_64 file /etc/httpd/conf/httpd.conf from install of httpd-2.2.15-31.el6.centos.x86_64 conflicts with file from package httpd24-httpd-2.4.6-5.el6.x86_64 file /etc/httpd/conf/magic from install of httpd-2.2.15-31.el6.centos.x86_64 conflicts with file from package httpd24-httpd-2.4.6-5.el6.x86_64 file /etc/httpd/logs from install of httpd-2.2.15-31.el6.centos.x86_64 conflicts with file from package httpd24-httpd-2.4.6-5.el6.x86_64 file /etc/httpd/modules from install of httpd-2.2.15-31.el6.centos.x86_64 conflicts with file from package httpd24-httpd-2.4.6-5.el6.x86_64 file /etc/httpd/run from install of httpd-2.2.15-31.el6.centos.x86_64 conflicts with file from package httpd24-httpd-2.4.6-5.el6.x86_64
對此的任何解決方案將不勝感激。我認為一種方法是重命名包;但是,我不熟悉這個過程(如果可能的話)。
CentOS 5 和 6 上的 Webtatic 的 php56w 僅編譯為支持基本的 httpd 2.2 軟體包。這是因為 mod_php 是針對基本發行版的 httpd 編譯的。
我建議:
- 使用 CentOS 7,其中 php56w 支持 httpd 2.4
- 或者,在堅持使用 CentOS 6 時,使用 php56w-fpm 而不是 php56w,它的 fastcgi 介面由 httpd 2.4 的 mod_proxy_fcgi 支持