Reputation: 41
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.
Upvotes: 4
Views: 21450
Reputation: 29
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...
Upvotes: 3
Reputation: 1
append the following to the path of system variables
C:\wamp\bin\php\php5.5.12\ext;C:\wamp\bin\php\php5.5.12;.;
Upvotes: -3
Reputation: 21
I had this same and I enabled the rewrite_module in appache and it worked.
Upvotes: 0
Reputation: 938
Copy all dll files from C:\wamp\bin\php\php5.5.12 to C:\wamp\bin\apache\apache2.4.9\bin
Upvotes: 2
Reputation: 94642
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.
Upvotes: 13