I have Windows 10 with WAMP server (Apache 2.4.9, PHP 5.5.29 VC11 x64, e MySQL). All works fine, but now I will use curl extension.
I go into C:\wamp\bin\php\php5.5.29\phpForApache.ini
(from webserver configuration) and remove the comment from extension=php_curl.dll
reload apache server and in error_log
I have
[22-Sep-2015 13:13:30 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.29/ext/php_curl.dll' - Impossibile trovare il modulo specificato.in Unknown on line 0
The DLL is on the correct folder and the other DLLs work fine.
1° try: I added in system var PATH: C:/wamp/bin/php/php5.5.29/ext/;c:/wamp/bin/php/php5.5.29/
2° try: I have re-dowload the file php-5.5.29-Win32-VC11-x64.zip
and replaced the php_curl.dll
But I have always the same result:
index.php
Fatal error: Call to undefined function curl_exec()
phperror_log:
[22-Sep-2015 13:13:30 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.29/ext/php_curl.dll' - Impossibile trovare il modulo specificato.in Unknown on line 0
What worked for me:
I copied libssh2.dll, libcrypto-1_1-x64.dll, libssl-1_1-x64.dll, ssleay32.dll, libeay32.dll to Apache bin folder. Probably not all of those are needed.
In php.ini, make sure the extension curl is loaded. This will be extension=php_curl.dll
for php < 7 and extension=curl
in php 7
Restart Apache Service
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With