如何解决警告:PHP启动:无法加载动态库'openssl'
我在Windows 10计算机上安装了xampp。从命令提示符运行php会出现以下错误。
Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: D:\xamp\php\ext\openssl
(The specified module could not be found.),D:\xamp\php\ext\php_openssl.dll
(The specified module could not be found.)) in Unknown on line 0
在php.ini中,对于extension_dir,我尝试提供绝对路径以及扩展目录的相对路径。 文件位于位置D:\ xamp \ php \ ext \ php_openssl.dll中。它仍然给出错误。
解决方法
可以检查加载的php.ini是否正确吗?
php --ini
您也可以使用以下方法检查php -m以检查cmd中加载的扩展名
php -m | findstr "xml"
您还可以尝试手动下载openssl扩展名: http://www.dlldownloader.com/php_openssl-dll/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。