安装soap后没有soap.so PHP模块文件


No soap.so PHP module file after installing SOAP

我遇到了一个问题,在安装了SOAP for PHP 5.3之后,我没有/usr/lib64/php/modules/soap.so文件,因此不能使用本机soap。

我错过了什么?我有--enable-soap=共享集,如下所示。

当我在运行PHP 5.3.10的CentOS VM上运行以下命令时:

[root@dev53 ~]# php -i | grep configure

我得到这个:

配置命令=>'/配置"--内部版本=x86_64-redhat-linux-gnu'"--主机=x86_64-redhat-linux-gnu"--目标=x86=64-redhat-linux-gnu'"--程序前缀="--前缀=/usr/"--exec前缀=/usr"--bindir=/usr/bin"--sbindir=/usr/sbin"--sysconfdir=/etc/"--datadir=/usr/share"--includedir=/usr/include"--libdir=/usr/lib64"--libexecdir=/usr/libexec"--localstatedir=/var/"--sharedstatedir=/usr/com"'--mandir=/usr/share/man'--infodir=/usr/share/info''--缓存文件=/config.cache"--使用libdir=lib64''--带有配置文件路径=/etc/'"--使用配置文件scan dir=/etc/php.d"--禁用调试"--带图片"--禁用rpath"--不带梨"--带-bz2"--带有exec dir=/usr/bin"--带有freetype dir=/usr/"--使用png dir=/usr/"--使用xpm dir=/usr"--启用gd本机ttf"--不带gdbm"--带gettext"--有gmp"--带有iconv"--带有jpeg dir=/usr/"--带有openssl"--带zlib"--布局=GNU"--启用exif"--启动ftp"--启用魔术引号"--启用套接字"--启用sysvsem"--启用sysvshm"--启用sysvmsg"—使用kerberos"--启用ucd-snmp破解"--启用shmop"--禁用日历"--不带sqlite"--带libxml dir=/usr/"--启用xml"--使用系统tzdata"--启用强制cgi重定向"--禁用pcntl"--使用imap=shared"--使用imap-ssl"--启用mbstring=shared"--启用mbregex"--使用gd=shared"--启用bcmath=shared。"--启用dba=shared"--带有-db4=/usr/"--带xmlrpc=shared。"--带有ldap=shared"--带有ldap sasl"--带mysql=shared,/usr/"'--带有mysqli=shared,/usr/lib64/mysql/mysql_config'"--启用dom=shared"--使用pgsql=shared’--启用wddx=shared。"--使用snmp=shared,/usr/"--启用soap=shared"--使用xsl=shared,/usr/"--启用xmlreader=shared"--启用xmlwriter=shared"--使用curl=shared,/usr/"--启用fastcgi"--启用pdo=shared"--带有pdo-odbc=共享,unixODBC,/usr/"'--使用pdo-mysql=共享,/usr/lib64/mysql/mysql_config'"--带有pdo pgsql=共享,/usr/"--带有pdo sqlite=共享,/usr"--带有pdo dblib=共享,/usr/"--带有out-sqlite3'"'--enable json=shared''-enable zip=shared''--带readline'"--使用pspel=shared"--启用phar=shared"--带有mcrypt=shared,/usr/"--带有ticy=shared,/usr"--使用mssql=shared,/usr/"--启用sysvmsg=shared"--启用sysvshm=共享"--启用sysvsem=共享"--启用posix=shared"--使用unixODBC=shared,/usr/"--启用fileinfo=shared"--启用intl=shared"--带icu dir=/usr/"--带recode=shared,/usr/"

在CentOS上运行以下命令以解决问题:

cd /var/tmp 
wget http://repo.webtatic.com/yum/centos/5/x86_64/php-soap-5.3.10-1.w5.x86_64.rpm
rpm -ivh php-soap-5.3.10-1.w5.x86_64.rpm