Php Magento未捕获SoapFault异常:[0]无法在/opt/local/apache2/htdocs/code中的服务器上加载Soap扩展/

Php Magento未捕获SoapFault异常:[0]无法在/opt/local/apache2/htdocs/code中的服务器上加载Soap扩展/,php,apache,magento,soap,soap-client,Php,Apache,Magento,Soap,Soap Client,我现在很迷茫。我正在尝试使用Soap客户端,出现以下错误 Uncaught SoapFault exception: [0] Unable to load Soap extension on the server in /opt/local/apache2/htdocs/code/import.php import.php的内部 import.php 当我访问我的phpinfo时,我能够看到我的soap客户机被启用 我使用的是Macports,我也安装了soap端口扩展 下面是我在php.i

我现在很迷茫。我正在尝试使用Soap客户端,出现以下错误

Uncaught SoapFault exception: [0] Unable to load Soap extension on the server in /opt/local/apache2/htdocs/code/import.php
import.php的内部

import.php 当我访问我的phpinfo时,我能够看到我的soap客户机被启用

我使用的是Macports,我也安装了soap端口扩展

下面是我在php.ini中找到的内容

extension=php_soap.dll
[soap]
; Enables or disables WSDL caching feature.
; http://php.net/soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://php.net/soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used
; instead of original one.
; http://php.net/soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

; Sets the size of the cache limit. (Max. number of WSDL files to cache)
soap.wsdl_cache_limit = 5

我做错了什么?

我已经明白了。我的本地机器安装了SOAP客户端和服务器扩展,但我调用的服务器没有安装。我必须去远程服务器安装soap扩展。我从下面得到了我的消息来源

我很困惑,因为我认为错误是指我的本地机器,但它指的是我的远程机器


我已经想明白了。我的本地机器安装了SOAP客户端和服务器扩展,但我调用的服务器没有安装。我必须去远程服务器安装soap扩展。我从下面得到了我的消息来源

我很困惑,因为我认为错误是指我的本地机器,但它指的是我的远程机器


您是否查看了
/opt/local/apache2/htdocs/code/
中是否存在扩展名.dll文件?我想它正试图从那个位置加载它,但由于某种原因无法访问它。我已经找到了答案。谢谢你的帮助。我发布了答案您是否查看了
/opt/local/apache2/htdocs/code/
以查看扩展名.dll文件是否存在?我想它正试图从那个位置加载它,但由于某种原因无法访问它。我已经找到了答案。谢谢你的帮助。我发布了答案,这可以解释为什么创建客户端有效,但登录无效。这可以解释为什么创建客户端有效,但登录无效。
extension=php_soap.dll
[soap]
; Enables or disables WSDL caching feature.
; http://php.net/soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://php.net/soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used
; instead of original one.
; http://php.net/soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

; Sets the size of the cache limit. (Max. number of WSDL files to cache)
soap.wsdl_cache_limit = 5