dll files though present do not get loaded - php

I get a php warning:
[06-Jan-2016 13:50:15 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:/MAS/php/ext\php_curl.dll' - The specified module could not be found.
in Unknown on line 0
[06-Jan-2016 13:50:15 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:/MAS/php/ext\php_intl.dll' - The specified module could not be found.
in Unknown on line 0
[06-Jan-2016 13:50:15 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:/MAS/php/ext\php_ldap.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
The dll files are there in the right directory. Why could be the reason then, I get this error?
I am running : PHP Version 5.6.15 and Apache Version Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15. I believe that they both are compatible with each other. Both php and apache are 32bit but windows 64bit.

Related

php not finding php_protobuf_ts and php_curve25519_ts

I am using php 7.1.12 on a windows PC, i have tried to install php_protobuf_ts.dll and php_curve25519_ts.dll extensions to php i keep getting this error
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_protobuf_ts.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_curve25519_ts.dll' - The specified module could not be found.
in Unknown on line 0
I am getting this error despite confirming that the above extensions exist on the specified directory. Please help, i have tried everything

MongoDB, Windows and PHP plus wamp

I am using Windows 7 x64 with PHP 5.5.12 plus.
I am receiving the following error:
line 862 "extension=php_mongo.dll" and the ext_dir "extension_dir = "c:/wamp/bin/php/php5.5.12/ext/""
I placed php_mongo-1.6.8-5.5-vc11-x86_64.dll inside said directory and renamed it tophp_mongo.dll, restarted without problems. Placed it online, also, without problems.
However it is still not installed, tried a full computer restart, neither worked, and not placed in phpinfo().
Using 1.6.10 version, will also give the same results.
EDIT: the error:
[18-Aug-2015 07:10:55 UTC] PHP Warning: 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.
in Unknown on line 0
[18-Aug-2015 07:10:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.
in Unknown on line 0
[18-Aug-2015 07:10:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.
in Unknown on line 0
[18-Aug-2015 07:10:56 UTC] PHP Warning: 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.
in Unknown on line 0
[18-Aug-2015 07:10:56 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.
in Unknown on line 0
[18-Aug-2015 07:10:56 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.
in Unknown on line 0
[18-Aug-2015 07:13:12 UTC] PHP Warning: 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.
in Unknown on line 0
[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.
in Unknown on line 0
[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.
in Unknown on line 0
[18-Aug-2015 07:13:12 UTC] PHP Warning: 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.
in Unknown on line 0
[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.
in Unknown on line 0
[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.
in Unknown on line 0
http://i.imgur.com/YGvLRiC.png image of php just pulling bullshit as usual (everything is there, tried read only and without read only.)
Apparently php cannot find ANY module, even if they're ticked on wamp's menus.
EDIT2:
After adding libsasl.dll to apache's directory following PHP Startup Unable to load dynamic library php_mongo.dll instructions the error changes into:
[18-Aug-2015 07:36:39 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
Are you using the thread-safe or non-thread-safe PHP build? I tried to reproduce the error on my Windows 7 build, which has thread-safe PHP installed, and it wouldn't work with the nts MongoDB driver, but the thread-safe one worked fine.
In short: Be sure to use the driver with 'nts' in the name if you're running the non-thread-safe PHP build.
Hope this helps!

WAMP PHP Startup Error: Unable to load dynamic library

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.
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.
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
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',
);
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.
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...
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 !

Unable to use mcrypt extension in php 5.2.9

I am using xampp 1.8.1 and I integrated php 5.2.9 to it by using the patch delivered by apachelounge
I have started apache it was started normally but it shows some errors with the php extensions
[02-Nov-2012 10:56:42] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_mcrypt.dll' - The specified module could not be found. in Unknown on line 0
[02-Nov-2012 10:56:42] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_mssql.dll' - The specified module could not be found. in Unknown on line 0
[02-Nov-2012 10:56:42] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_pdo_mssql.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:42] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_pgsql.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:42] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_ps.dll' - The specified module could not be found. in Unknown on line 0
[02-Nov-2012 10:56:42] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_paradox.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_mcrypt.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_mssql.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_pdo_mssql.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_pgsql.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_ps.dll' - The specified module could not be found.in Unknown on line 0
[02-Nov-2012 10:56:45] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Secoweb\xampp\php\ext\php_paradox.dll' - The specified module could not be found.in Unknown on line 0
I refereed Stackoverflow question in this link . and I followed the steps but it was also a failure.
I had these dll's in xampp/php/ext folder, I tried by putting dll's in system32 folder. I was also not working.
I am using mcrypt for password encryption and decryption. So please help me to start php with mcrypt extension.
Thanks in advance
Jishnu
Finally I am able to find out the solutions for the issue.
It was due to the libmcrypt.dll dependency issue, So I put the libmcrypt.dll into apache folder and restarted the apache. also I commented all the unwanted extensions so phperrorlog is clean now.
libmcrypt.dll is present in the php folder I fixed the issue by moving the dll into apache/bin folder
Now Xampp 1.8.1 is working perfectly with php 5.2.9

[PHP/IIS FastCGI]: Error after installing FastCGI and PHP 5.3.0 nts on windows

I am getting following errors when I try to execute any PHP application after I installed IIS FastCGI and PHP 5.3.0 non-thread-safe on Windows XP:
PHP Warning: PHP Startup: Unable to
load dynamic library 'C:\Program
Files\PHP\ext\php_enchant.dll' - The
specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to
load dynamic library 'C:\Program
Files\PHP\ext\php_oci8.dll' - The
specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to
load dynamic library 'C:\Program
Files\PHP\ext\php_oci8_11g.dll' -
The specified module could not be
found. in Unknown on line 0
PHP Warning: PHP Startup: Unable to
load dynamic library 'C:\Program
Files\PHP\ext\php_pdo_oci.dll' - The
specified module could not be found.
in Unknown on line 0
How to get rid of this?
Check that the offending dlls actually are there in the ext folder
Check that in your php.ini the extension_dir value is enclosed by quotes
Finally, check the documentation of those extensions for additional dependencies (e.g. I recall the Oracle extensions requiring some dlls that come with the Oracle client...)

Categories