Author |
|
hypersonic
Joined: 17 Jul 2018 Posts: 9 Location: Germany
|
Posted: Wed 31 May '23 15:01 Post subject: Cannot load modules php_ftp.dll and php_openssl.dll wi2.4.57 |
|
|
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: 1266 Location: Amsterdam, NL, EU
|
Posted: Wed 31 May '23 15:15 Post subject: |
|
|
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
|
Posted: Wed 31 May '23 15:35 Post subject: |
|
|
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: 1266 Location: Amsterdam, NL, EU
|
Posted: Wed 31 May '23 15:41 Post subject: |
|
|
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
|
Posted: Wed 31 May '23 17:28 Post subject: |
|
|
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
|
Posted: Wed 31 May '23 17:50 Post subject: |
|
|
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 |
|