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

标签 php soap centos

我有一个问题,在为 PHP 5.3 安装 SOAP 之后,我没有 /usr/lib64/php/modules/soap.so 文件在我的系统上,因此不能使用 native SOAP。

我错过了什么?我设置了 --enable-soap=shared ,如下所示。

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

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

我明白了:

Configure Command => './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/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' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib64/mysql/mysql_config' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pdo-dblib=shared,/usr' '--without-sqlite3' '--enable-json=shared' '--enable-zip=shared' '--with-readline' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/usr' '--with-tidy=shared,/usr' '--with-mssql=shared,/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-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

关于php - 安装 SOAP 后没有 soap.so PHP 模块文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9836994/

相关文章:

php - 将 GET 变量从 PHP 转换为友好的 URL?

Php unlink() 不要删除图像文件

.net - 如何为 .Net 中的 SOAP/Web 服务类生成 HTML 文档?

android - 当涉及 SOAP Web 服务时,处理图像的最有效和最可靠的方法是什么?

linux - 为 K8s 将 Centos 虚拟机相互连接

centos - LSF 平台错误 : lsb_init: Failed in an LSF library call: Unable to open file lsf. conf

php - 连接云MySQL实例

java - 安卓应用程序 : How to prevent duplicate email and phone number when people register

c# - 使用具有不同端点 URI 的 C# 服务引用 SOAP 客户端

centos - 如何使用 Ansible 重启 CentOS 7?