|
[26-Jun-2023 07:10:58 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: D:\usr\local\php\ext\curl (找不到指定的模块。), D:\usr\local\php\ext\php_curl.dll (找不到指定的模块。)) in Unknown on line 0
PHP版本 8.2
- extension=curl
- copy libssh2.dll from D:\usr\local\php into D:\usr\localapache\bin
- copy libcrypto-*.dll and libssl-*.dll from D:\usr\local\php into D:\usr\local\apache\bin (if it doesn't exist)
It's a problem related to Windows, if you are using Apache2.x + Php, the trick consists in using LoadFile to force the loading of CURL as explained in my [color=var(--theme-link-color)]Guide. You don't need strange things or rituals to have CURL working on your machine, you only need edit httpd.conf and add this:
# load CURL library on Windows
LoadFile "${SRVROOT}/php/libssh2.dll"
https://stackoverflow.com/questions/26857107/php-startup-unable-to-load-dynamic-library-php-curl-dll
|
|