通业开发人论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 437|回复: 0

ext\curl (找不到指定的模块

[复制链接]
发表于 2023-6-26 15:25:25 | 显示全部楼层 |阅读模式
[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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|TongYe R&D Inc.

GMT+8, 2024-5-12 16:08 , Processed in 0.130007 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2000-2022, Tongye. 粤ICP备17061194号

快速回复 返回顶部 返回列表