[英]Can't install WSO2 for PHP on Windows x64 — PHP Startup: Unable to load dynamic library 'ext\wsf.dll'
I think I have followed the installation instructions, but obviously I have missed something. 我想我已经按照安装说明进行了操作,但是显然我错过了一些东西。 Basically, with the DLL in the php.ini file, I get:
基本上,使用php.ini文件中的DLL,我得到:
PHP Startup: Unable to load dynamic library 'ext\\wsf.dll' PHP启动:无法加载动态库“ ext \\ wsf.dll”
Without it, all starts fine. 没有它,一切都会开始。 Here's some highlights from phpinfo:
以下是phpinfo的一些亮点:
PHP Version 5.4.6
extension_dirext ext ext
include_path: .;c:\php\includes;C:\PHP\wso2-wsf-php-bin-2.1.0-win32\scripts
Path : 路径:
c:\php;C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib;c:\php\ext;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Windows\idmu\common;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
WSFC_HOME : C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c
From the php.ini:
[wsf]
wsf.home="C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c"
wsf.log_path="C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\logs\"
wsf.log_level=4
wsf.rm_db_dir="C:\windows\temp\"
I've also watched the process while trying to start PHP in Process Monitor. 在尝试在Process Monitor中启动PHP时,我也看到了该过程。 I see c:\\php\\ext\\wsf.dll loaded.
我看到c:\\ php \\ ext \\ wsf.dll已加载。 Then it starts down a list of dependencies, looking along the path and finding most of them in the lib folder.
然后,它开始列出依赖项列表,沿着路径查找并在lib文件夹中找到大多数依赖项。
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\axutil.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\axis2_engine.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\axiom.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\axis2_parser.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\guththila.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\neethi.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\rampart.dll
C:\Windows\SysWOW64\libeay32.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\neethi_util.dll
C:\PHP\wso2-wsf-php-bin-2.1.0-win32\wsf_c\lib\sandesha2_client.dll
writes to the error log: 写入错误日志:
[12-Sep-2012 12:48:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'ext\wsf.dll' - The specified procedure could not be found. in Unknown on line 0
Continues: 继续:
C:\PHP\ext\php_xsl.dll
And the last thing I see is some failed attempts at reading registry keys that are not there, the Per Directory Values Key is what it's after. 我看到的最后一件事是尝试读取注册表项失败的尝试,但失败的原因是Per Directory Values Key。
Suggestions? 有什么建议吗?
I am afraid wso2 for PHP is not compatible with PHP 5.4 I tried to compile wso2 extension for PHP on linux and succeeded only with PHP 5.3. 恐怕wso2 for PHP与PHP 5.4不兼容我试图在Linux上为PHP编译wso2扩展,仅在PHP 5.3上成功。 There is the same issue for windows probably.
Windows可能存在相同的问题。
You can try to downgrade your PHP to version 5.3 and check if it'll work in this case. 您可以尝试将PHP降级到5.3版,并检查在这种情况下是否可以使用。
I should also warn you not to use this extension in production because of the following reasons: 我还应警告您,由于以下原因,请勿在生产中使用此扩展名:
On the recent project we are also supposed to use wso2 php extension, but after some research we see that this extension is unstable and not supported anymore. 在最近的项目中,我们也应该使用wso2 php扩展名,但是经过一些研究,我们发现此扩展名不稳定并且不再受支持。 Unfortunately, for now we do not know what to use instead and looking for some other solutions.
不幸的是,目前我们不知道该用什么来寻找其他解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.