我正试图在我的Web服务器上进行系统范围的PEAR安装。当我在命令行PHP的安装目录执行go-pear.bat
我收到以下错误窗口弹出:为什么PHP PEAR报告它无法在Windows上找到某些DLL?
---------------------------
php.exe - Unable To Locate Component
---------------------------
This application has failed to start because php_mbstring.dll was not found.
Re-installing the application may fix this problem.
---------------------------
php.exe - Unable To Locate Component
---------------------------
This application has failed to start because php_pdo.dll was not found.
Re-installing the application may fix this problem.
我也看到脚本在命令行窗口中发出如下警告:
PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_exif.dll' - The specified modul
e could not be found.
in Unknown on line 0
所有这些模块都配置在php.ini
文件(位于php安装文件夹c:\php
)中。
它们也可以通过php_info()
正确报告。
我正在运行PHP 5.2.6 Windows非线程安全建立在IIS6上的FastCGI上。
更新:
我也试过(由acrosman的建议)设置extension_dir=c:\php
和extension_dir=c:\php\ext
但没有成功。
我也记得在每个php.ini
修改后强制重新读取,以消除php-cgi.exe
进程(FastCGI保持活动状态)。
更新2:
这看起来像一个PHP问题,而不是一个问题,梨,在命令行中运行php.exe
产生同样的错误。
这实际上让事情更多因为我认为PHP将ext/module.dll附加到该路径。 – Kev 2009-07-03 13:14:26