WAMP PHP启动错误:无法加载动态库

时间:2014-10-04 22:05:57

标签: php wamp

我的WAMP服务器昨天工作得很好。今天我不得不重新启动我的计算机,并且有些事情搞砸了。服务器永远不会完全启动...任务栏图标保持橙色。我的项目将打开,但只有HTML加载而不是PHP。这是PHP的错误日志...

[04-Oct-2014 01:36:27 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:36:27 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:36:27 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

[04-Oct-2014 01:36:27 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:36:27 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:36:27 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

[04-Oct-2014 01:37:28 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:37:28 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:37:28 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

[04-Oct-2014 01:37:29 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:37:29 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:37:29 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

[04-Oct-2014 01:38:42 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:38:42 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:38:42 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

[04-Oct-2014 01:38:43 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:38:43 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:38:43 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

[04-Oct-2014 01:44:47 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:44:47 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:44:47 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

[04-Oct-2014 01:44:48 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:44:48 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[04-Oct-2014 01:44:48 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'W:/wamp/bin/php/php5.5.12/ext/php_smtp.dll' - %1 is not a valid Win32 application.

 in Unknown on line 0

所有图书馆的文件仍然存在于正确的文件夹中。有人知道是什么原因引起的吗?

更新:不确定为什么我有这么多不同的版本,但它们是: visual c++ redistributable versions

更新:我完全重新安装了wamp,但我仍然遇到这些错误。

6 个答案:

答案 0 :(得分:16)

这只是2.5安装过程中的一个小问题。

您需要做的就是: -

使用wampmanager(系统托盘中的W图标)执行

left click wampmanager -> Apache -> Version -> (and click on the version number)

这将导致wampmanager重建apache / bin文件夹中的所有SYMLINKS,然后重新启动Apache。这应该可以解决问题并阻止错误显示在php error log

答案 1 :(得分:2)

这是一个版本不匹配或缺少这些扩展dll的依赖。

您可能需要安装Visual C ++ Redistributable:

PHP VC9版本(5.4)要求您安装Visual Studio 2008 SP1 x86或x64的Visual C ++ Redistributable。

VC11版本(5.5,5.6)要求安装Visual Studio 2012 x86或x64的Visual C ++ Redistributable。

php_ldap也可能需要libeay32.dll和ssleay32.dll ......但这些文件是PHP发行版的一部分。这只是一个问题,如果它们被删除或者PHP文件夹不在你的ENV PATH var。

尝试使用全新的PHP下载:

答案 2 :(得分:0)

可以使用Wamp菜单更正此问题。

检查您拥有的apache版本。它可能是2.4.9

here会导致WAMPServer to rebuild of all the SYMLINK's in the apache2.4.9/bin folder and that will put the correct symlinks in there for these 2 extensions.

因此,您需要修改\wamp\script\config.inc.php并找到变量$phpDllToCopy并进行更改

$phpDllToCopy = array (
'icudt52.dll', 
'icuin52.dll',
'icuio52.dll',
'icule52.dll',
'iculx52.dll',
'icutest52.dll',
'icutu52.dll',
'icuuc52.dll',
'icudt51.dll', 
'icuin51.dll',
'icuio51.dll',
'icule51.dll',
'iculx51.dll',
'icutest51.dll',
'icutu51.dll',
'icuuc51.dll',
'icudt50.dll', 
'icuin50.dll',
'icuio50.dll',
'icule50.dll',
'iculx50.dll',
'icutest50.dll',
'icutu50.dll',
'icuuc50.dll',
'icudt49.dll',
'icuin49.dll',
'icuio49.dll',
'icule49.dll',
'iculx49.dll',
'icutest49.dll',
'icutu49.dll',
'icuuc49.dll',
'libeay32.dll',
'libsasl.dll', 
'libintl.dll',
'php5isapi.dll',
'php5nsapi.dll',
'ssleay32.dll',
'php5ts.dll',
'fribidi.dll', 
'fdftk.dll',   
'libmcrypt.dll',
'libmhash.dll',
'libmysql.dll',
'libmysqli.dll',
'msql.dll',
'ntwdblib.dll',
'php5activescript.dll',
);

答案 3 :(得分:0)

在将新的PHP版本添加到wamp(7.3.17)中并添加路径后,它发生了 wamp \ bin \ php \ Path_of_your_PHP 在环境变量PATH中解决了此问题。

答案 4 :(得分:-1)

请卸载已安装的wamp ..尝试安装Visual C ++,即此处提供的链接http://www.microsoft.com/en-in/download/confirmation.aspx?id=30679请使用此链接。

下载并安装Visual C ++后,您可以再次安装Wamp服务器..这样它才能正常运行......

答案 5 :(得分:-2)

已决定!!

我收到了以下错误:

1)PHP启动:无法加载动态库' c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - 找不到指定的模块。

2)程序无法启动,因为您的计算机缺少MSVCP110.dll。尝试重新安装该程序以解决此问题。

即使在安装Visual C ++ Redistributable之后,错误仍然存​​在。 我通过将MSVCP110.dll复制到Windows \ System32文件夹解决了这个问题。它现在正在运行!