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

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


These steps worked for me:

  1. Add the main php folder onto the Path Env variable in Windows (solibeay32.dll and ssleay32.dll are path-accessible ... some peoplecopy these to Windows/System32 to make them path-accessible but thatisn't really elegant way to solve issue)
  2. Add the Apache bin folder onto the Path Env variable in Windows

  3. Copy the file libssh2.dll from the php folder to apache's binfolder (Apache seems to need this for php's curl to work in Windows)


PHP Startup: Unable to load dynamic library 'curl' ...Uncommenting 2 lines in the php.ini file solves this

Open php.iniRemove semicolon to uncomment ;extension_dir = "ext"Remove semicolon to uncomment ;extension=curlSave php.ini


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