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

后端 未结 3 1410
长发绾君心
长发绾君心 2020-12-18 01:32

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

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 02:06

    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)

提交回复
热议问题