logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Cannot load modules php_ftp.dll and php_openssl.dll wi2.4.57
Author
hypersonic



Joined: 17 Jul 2018
Posts: 9
Location: Germany

PostPosted: Wed 31 May '23 15:01    Post subject: Cannot load modules php_ftp.dll and php_openssl.dll wi2.4.57 Reply with quote

Hi there,
with 2.4.57 I get PHP errors on Win Server 2019:
- Cannot load module php_ftp.dll in Unknown on line 0
- Cannot load module php_openssl.dll in Unknown on line 0

All other PHP modules load normally.

These load errors don't occur with 2.4.54 and same PHP config.

Any hints what to do?

Thanks
Hyper
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Wed 31 May '23 15:15    Post subject: Reply with quote

Which PHP-version? PHP 7.2 - PHP 8.x (which exactly is not certain) are looking for OpenSSL 1.1.1. Files for 64-bits PHP: libcrypto-x64.dll and libssl-x64.dll. You could try to put them besides the libcrypto-3-x64.dll & libssl-3-x64.dll that come with Apachelounge's Apache 2.4.57. You can find the latest OpenSSL 1.1.1u files in my builds at https://www.apachelounge.com/viewtopic.php?t=6359
Back to top
hypersonic



Joined: 17 Jul 2018
Posts: 9
Location: Germany

PostPosted: Wed 31 May '23 15:35    Post subject: Reply with quote

PHP 7.4.33

Thanks for the hint!
I compared the files in /bin:
2.4.54 has libcrypto-1_1-x64.dll and libssl-1_1-x64.dll
whereas
2.4.57 has libcrypto-3-x64.dll and libssl-3-x64.dll

Can I just copy the both dll files from 2.4.54 to 2.4.57?
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Wed 31 May '23 15:41    Post subject: Reply with quote

Try it. If it does not work you should switch from mod_php to mod_fcgid.
Back to top
hypersonic



Joined: 17 Jul 2018
Posts: 9
Location: Germany

PostPosted: Wed 31 May '23 17:28    Post subject: Reply with quote

Yep, that seems to work.
I simply copied libcrypto-1_1-x64.dll and libssl-1_1-x64.dll from the 2.4.54 /bin to the 2.4.57 /bin.

Now, no PHP errors occur anymore.

Thanks again.
Back to top
hypersonic



Joined: 17 Jul 2018
Posts: 9
Location: Germany

PostPosted: Wed 31 May '23 17:50    Post subject: Reply with quote

hm, supplement:
System now runs without PHP errors.
But it's now awfully slow.
Every request seems to take half a second before it's responded.
I now returned to 2.4.54 again which has fast responses with same config.

Might this slowdown come from OpenSSL 3?
2.4.54 still runs with OpenSSL 1.1.1.

Do I have to modify other settings?
I run a vanilla apache using http/2 (mod_http2.so).
Back to top


Reply to topic   Topic: Cannot load modules php_ftp.dll and php_openssl.dll wi2.4.57 View previous topic :: View next topic
Post new topic   Forum Index -> Apache