Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Warning: PHP Startup: Unable to load dynamic library php_curl.dll impossibile find

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

like image 508
lbottoni Avatar asked Sep 22 '15 13:09

lbottoni


1 Answers

What worked for me:

  1. 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.

  2. 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

  3. Restart Apache Service

like image 53
mikewasmike Avatar answered Nov 07 '22 08:11

mikewasmike