我无法安装任何php扩展程序
启用Epel存储库
yum repolist 显示
repo id repo name status
base CentOS-6 - Base 5,932+362
epel Extra Packages for Enterprise Linux 6 - x86_64 5,867+1,143
extras CentOS-6 - Extras 4
updates CentOS-6 - Updates 334+83
repolist: 12,137
yum install php-soap 要么 yum --enablerepo = epel install php-soap 输出:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.dedipower.com
* epel: mirror01.th.ifl.net
* extras: mirrors.dedipower.com
* updates: mirror.as29550.net
Setting up Install Process
No package php-soap available.
Error: Nothing to do
答案 0 :(得分:15)
您应该检查/etc/yum.conf文件。 可能有一条线看起来像: 排除= PHP * 这将阻止您安装任何PHP扩展。
如果你使用DirectAdmin,你应该检查一下: http://woshka.com/blog/linux/centos/direct-admin-control-panel/compile-and-enable-soap-into-php-with-directadmin-controlpanel-custombuild.html