D:\phpstudy_pro\Extensions\php\php8.2.9nts
复制内容到php.ini
;extension_dir = "ext"
改为
extension_dir = "D:\phpstudy_pro\Extensions\php\php8.2.9nts\ext"
测试 extension_dir = "ext" 不加路径也可以
extension=bz2
extension=curl
extension=fileinfo
extension=gd
extension=gettext
extension=mbstring
extension=mysqli
extension=openssl
extension=pdo_mysql
max_input_vars = 1000
根据需要开启扩展
错误日志路径
error_log=D:/phpstudy_pro/Extensions/php/php8.2.9nts.log
session.save_path配置
session.save_path = "D:\phpstudy_pro\Extensions\tmp\tmp"
安装Redis 扩展
https://pecl.php.net/package-stats.php 下载 PECL :: Package :: redis 6.0.2 for Windows
解压复制到这里
修改php.ini
重启基本可以了