PHP8.2的环境下,创建laravel10项目报错In Factory.php line 654: The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl ex
tension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.
解决方法:开启php_openssl扩展
extension=php_openssl
如果还报错,检查下extension_dir路径,是否为扩展存放路径
extension_dir="D:\ProgramFiles\phpstudy_pro\Extensions\php\php8.2.19nts\ext"
文章评论(0)