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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26197659/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 18:13:32  来源:igfitidea点击:

WAMP PHP Startup Error: Unable to load dynamic library

phpwamp

提问by ShoeLace1291

My WAMP server was working absolutely fine yesterday. Today I had to restart my computer and something fouled up the works. The server never fully starts... the task bar icon stays orange. My projects will open, but only the HTML load and not the PHP. Here is my error log from PHP...

我的 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

All of the librarys' files are still present in the correct folder. Anyone know what could cause this?

所有库的文件仍然存在于正确的文件夹中。有谁知道是什么原因造成的?

Update: Not sure why I have so many different versions, but here they are: visual c++ redistributable versions

更新:不知道为什么我有这么多不同的版本,但它们是: Visual C++ 可再发行版本

Update: I did a full reinstall of wamp and I am still getting these errors.

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

回答by RiggsFolly

This is just a hiccup in the 2.5 installation process.

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

All you need to do is this:-

您需要做的就是:-

Using the wampmanager (the W icon in the system tray ) do

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

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

This will cause wampmanager to rebuild all the SYMLINKS in the apache/bin folder, and restart Apache. This should fix the issue and stop the errors from appearing in the php error log.

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

回答by Jens A. Koch

It's a version mismatch or a missing dependency of these extension dll's.

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

You might need to install Visual C++ Redistributable:

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

The PHP VC9 builds (5.4) require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed.

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

The VC11 builds (5.5, 5.6) require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed.

VC11 版本(5.5、5.6)需要安装 Visual C++ Redistributable for Visual Studio 2012 x86 或 x64。

php_ldap might need libeay32.dll and ssleay32.dll, too... but these file are part of the PHP distribution. This would only be a problem, if they were deleted or if the PHP folder is not on your ENV PATH var.

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

Try with a fresh PHP download:

尝试使用全新的 PHP 下载:

回答by Avinash Babu

This can be corrected by using the WampMenus.

这可以通过使用Wamp菜单来纠正。

Check the apache version that you have.It might be 2.4.9.

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

It will cause 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.as says 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.这里所说的那样引起。

So you would need to edit the \wamp\script\config.inc.phpand find the variable $phpDllToCopyand make changes like

因此,您需要编辑\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',
);

回答by Rando Varghese

Please uninstall wamp which you had been installed.. Try to install Visual C++ ie, the link is given here http://www.microsoft.com/en-in/download/confirmation.aspx?id=30679use this link.

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

after downloading and installing Visual C++ you can install the Wamp server again.. So that it will work..correctly...

下载并安装 Visual C++ 后,您可以再次安装 Wamp 服务器.. 这样它就能正常工作..正确......

回答by Sun

RESOLVED !!

解决 !!

I was getting the following errors:

我收到以下错误:

1) PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

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

2) The program can't start because MSVCP110.dll is missing from your computer. Try reinstalling the program to fix this problem.

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

The error was still there even after installing Visual C++ Redistributable. I resolved it by copying MSVCP110.dll to Windows\System32 folder. It is up and running now !

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