原文:https://www.cnblogs.com/breeze-zZ/p/11170982.html
php加载各个功能模块,一步一坑,这里把有参考价值的记录一下。
这里用到的是Apache2.4.34和php7.3.4
首先是php运行报Unable to load dynamic library 'curl'的问题,这个是没有找到 libssh2.dll和 libssl-1_1-x64.dll,解决方法有两种:
1.在php目录下找到这两个文件,复制到Apache/bin目录下;
2.在Apache的httpd.conf里修改,加上下边这两行
LoadFile "c:/server/apache24/bin/libssh2.dll" LoadFile "c:/server/apache24/bin/libssl-1_1-x64.dll"
第二个是报Unable to load dynamic library 'intl'的问题,这个是缺少 icudt63.dll、icuin63.dll、icuio63.dll、icuuc63.dll这几个icu开头的文件,在php目录下都能找到,解决方法同上。
第三个是报Unable to load dynamic library 'ldap'的问题,这个是缺少 libsasl.dll 文件,解决方法同上。
第四个是报Unable to load dynamic library 'mysql',这个就不一样了,php7已经舍弃了php_mysql.dll,建议使用php_mysqli.dll或者php_pdo_mysql.dll。
- 本文固定链接: https://www.fengshen.cn/2023/11/解决php7无法加载curl、intl、ldap的问题/storyofwind/
- 转载请注明: fengshen 发表于 Dream of Wind | 一梦风神
觉得文章有用,微信打赏一元。
