2009-07-03 39 views
1

我正试图在我的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:\phpextension_dir=c:\php\ext但没有成功。

我也记得在每个php.ini修改后强制重新读取,以消除php-cgi.exe进程(FastCGI保持活动状态)。

更新2:

这看起来像一个PHP问题,而不是一个问题,梨,在命令行中运行php.exe产生同样的错误。

回答

2

解决。事实证明php.exe需要在系统PATH中看到PHP扩展(c:\php\ext)文件夹。

0

检查以确保扩展目录在您的php.ini文件中正确设置。我怀疑它设置为相对路径,并设置导致的问题在命令行中运行时:

extension_dir ="C:\PHP\ext" 
+0

这实际上让事情更多因为我认为PHP将ext/module.dll附加到该路径。 – Kev 2009-07-03 13:14:26

相关问题