PHP8.2.9NTS版本使用composer报错,扩展找不到的问题处理

使用composer install时报错:

The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at y

our own risk, by setting the 'disable-tls' option to true.

Warning: PHP Startup: Unable to load dynamic library 'php_pdo_mysql' (tried: C:\php\ext\php_pdo_mysql (找不到指定的模块。), C:\php\ext\php_php_pdo_mysql.dll (找 不到指定的模块。)) in Unknown on line 0

是扩展问题,然后检查了php.ini中安装了扩展,那就是路径问题,发现缺少了extension_dir属性,添加上路径即正常了。

相关推荐
Lhappy嘻嘻15 小时前
Java IO|File 文件操作 + 字节流 / 字符流完整笔记 + 递归删除文件实战
java·笔记·php
2601_9637713718 小时前
How to Scale Your WordPress Store Traffic in 2026
前端·php·plugin
黄华SJ520it21 小时前
跨境电商分销直销系统:多语言融合的全球销售引擎
开发语言·php·系统开发
右耳朵猫AI1 天前
PHP周刊2026W28 | 安全更新、Laravel 13.18、Twig 3.28
开发语言·php·laravel
罗政1 天前
PDF 批量合并工具:本地 AI 自动排序、识别正文日期与合同编号
数据库·pdf·php
糖果店的幽灵1 天前
安全测试从入门到精通_网络基础与HTTPS
网络·https·php
2601_963771371 天前
WordPress SEO Guide: Boost Rankings Without Technical Jargon
前端·php
日取其半万世不竭1 天前
CS2 服务器搜不到?GSLT、端口和启动参数逐项检查
运维·服务器·php
360智汇云1 天前
一次Redis超时引发的“冤案“
数据库·redis·php
ljs6482739511 天前
Linux 网络常用命令与端口基础详解
linux·网络·php