Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

wamp

I installed WAMP server and whenever I try to compile a php file it doesn't display the php part. Only the html part is being displayed. The extension of the extension of the file is .php. I have tried setting the PATH for the environment variable. Nothing worked. When I checked the error log, this is what I could find.

[05-Aug-2014 12:04:30 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

[05-Aug-2014 12:04:31 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 

Please help.

like image 781
hemanth92 Avatar asked Dec 07 '22 01:12

hemanth92


1 Answers

All you need to do is :-

Using the wampmanager menus do

wampmanager -> Apache -> Version 

and click on the version number probably it will be 2.4.9

This will rebuild all the SYMLINKS in the apache/bin folder and Apache/PHP will be able to find the dll's required for these 2 extensions.

Also remove anything you added to the PATH env var as this will just cause problems if you ever install another version of Apache/Php, remember WAMPServer can install multi versions of both and allow you to switch between them at the click of a menu option.

WAMPServer does not need anything added to the PATH to work correctly.

ADDITIONAL INFO:

Something you said

If I click on php www directory and run the index php file (already existing).

made me think you are using Explorer, and double clicking on the php scripts from there to launch a web page. Is this what you are doing?

If you are, DONT, you have to use your browser like you were accessing any other web site.

Always use the browser address bar to launch PHP code, otherwise it never actually goes through Apache, and therefore the PHP code never actually get passed to the PHP interpreter for compilation and execution.

like image 72
RiggsFolly Avatar answered Jan 09 '23 17:01

RiggsFolly