问题
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...
[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:
Update: I did a full reinstall of wamp and I am still getting these errors.
回答1:
This is just a hiccup in the 2.5 installation process.
All you need to do is this:-
Using the wampmanager (the W icon in the system tray ) do
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
.
回答2:
It's a version mismatch or a missing dependency of these extension dll's.
You might need to install 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.
The VC11 builds (5.5, 5.6) require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed.
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.
Try with a fresh PHP download:
- http://windows.php.net/downloads/releases/php-5.5.17-Win32-VC11-x86.zip
- http://windows.php.net/downloads/releases/php-5.5.17-Win32-VC11-x64.zip
- http://windows.php.net/downloads/releases/php-5.5.17-nts-Win32-VC11-x86.zip
- http://windows.php.net/downloads/releases/php-5.5.17-nts-Win32-VC11-x64.zip
回答3:
This can be corrected by using the Wamp
Menus.
Check the apache version that you have.It might be 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.
So you would need to edit the \wamp\script\config.inc.php
and find the variable $phpDllToCopy
and make changes like
$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',
);
回答4:
It happened to me after adding a new PHP version to wamp (7.3.17), Adding the path wamp\bin\php\Path_of_your_PHP in Environmental variable PATH solved this problem.
回答5:
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=30679 use this link.
after downloading and installing Visual C++ you can install the Wamp server again.. So that it will work..correctly...
回答6:
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.
2) The program can't start because MSVCP110.dll is missing from your computer. Try reinstalling the program to fix this problem.
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 !
来源:https://stackoverflow.com/questions/26197659/wamp-php-startup-error-unable-to-load-dynamic-library