Can't find ordinal 372 in WAMP/Apache's openssl.exe

Emiel Sebastiaan Hardy picture Emiel Sebastiaan Hardy · Mar 26, 2016 · Viewed 7.7k times · Source

The PHP framework I use needs OpenSSL for various features, but when executing anything related to OpenSSL, I get the following error: "Can't find ordinal 372 in DLL-file C:\wamp64\bin\apache\apache2.4.17\bin\openssl.exe".

I don't know how to correct this at all, I looked everywhere already. I'd appreciate the help, as I don't know how to fix this.

Answer

Adam Albright picture Adam Albright · Oct 6, 2016

To fix the issue, two things are needed:

1) Make sure that you don't have symbolic links for libeay32.dll and ssleay32.dll in your Apache bin directory (For example, mine is: C:\wamp64\bin\apache\apache2.4.23\bin)

If you do have symbolic links (i.e. the file size are 0 bytes), you need to download the dlls from Apache Lounge. For example, I grabbed the two .dll files from the 64-bit version of Apache 2.4.23 hosted at https://www.apachelounge.com/download/

2) Once you have the actual .dll files restored, you need to make sure that WampServer isn't overwriting them. WampServer 3 has a configuration script that runs every time it starts. In that script it will overwrite those .dlls with symbolic links. You must DISABLE that functionality. To do so, comment out the references to those two files in: C:\wamp64\scripts\config.inc.php (mine were located at lines 133 and 139).

That should allow you to enable the mod_ssl module in Apache. You'll also need to uncomment the "Include conf/extra/httpd-ssl.conf" after you get Apache booting properly with mod_ssl enabled. (However, you'll likely need to delete most of whats in there and start over since it includes lots of hardcoded paths and bugs)