解决PHP7中出现的PHP Warning: PHP Startup: Unable to load dynamic library 'curl'
2022-07-28 15:20:24
187
{{single.collect_count}}

经过大半天的摸索终于搞定这个巨坑了。。。从php官网的curl安装教程发现了这个,php的curl依赖库更名新的动态库名称了!!!
在Apache的httpd.conf的第一行加入以下代码

LoadFile "D:/php-7.2.15/libssh2.dll"LoadFile "D:/php-7.2.15/libcrypto-1_1-x64.dll"LoadFile "D:/php-7.2.15/libssl-1_1-x64.dll"

重启Apache服务器,输入phpinfo( )即可发现curl扩展。

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}