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属性,添加上路径即正常了。

相关推荐
rockmelodies5 小时前
【PHP安全】免费解密支持:zend52、zend53、zend54好工具
开发语言·安全·php
速易达网络11 小时前
PHP 与 Vue.js 结合的前后端分离架构
vue.js·php
Clownseven19 小时前
使用 eBPF 实时捕获 TCP 重传告警:精准定位网络抖动问题
网络·tcp/ip·php
lsswear19 小时前
PHP文件下载
php
行思理19 小时前
如何使用 php-vulnerability-hunter
开发语言·php
hjc_04204319 小时前
云效CI/CD教程(PHP项目)
ci/cd·php
MonkeyPromise1 天前
网络编程初识(详细易懂)
服务器·网络·php
uwvwko1 天前
使用docker(ubuntu)搭建web环境(php,apahce2)
ubuntu·docker·php·web·ctf·apache2
zorro_z2 天前
PHP语法高级篇(五):回调函数与异常处理
php