phpapachecurl

Apache won't load php_curl.dll


Apache is giving me this error

PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: C:/Users/tester/Desktop/Web Server/php-7.2.5-Win32-VC15-x64/ext/curl (The specified module could not be found.), C:/Users/tester/Desktop/Web Server/php-7.2.5-Win32-VC15-x64/ext/php_curl.dll (%1 is not a valid Win32 application.)) in Unknown on line 0

This is a 64bit Windows server 2016 install.

This PHP https://windows.php.net/downloads/releases/php-7.2.5-Win32-VC15-x64.zip

This Apache: https://www.apachelounge.com/download/VC15/binaries/httpd-2.4.33-win64-VC15.zip

All the other modules work+load fine.

I've tried adding the ext path to my system variables.

I've tried using a 32bit version of PHP_curl.dll

I've tried copying libeay32.dll, libssh2.dll, ssleay32.dll into pretty much everywhere. Apache root, ext folder.

What else can I try here?


Solution

  • In the end I had to simply copy libcrypto-1_1-x64.dll, libssh2.dll, libssl-1_1-x64.dll and nghttp2.dll from the PHP folder into the apache bin folder.