php安装,丢失openssl

1. 安装php

PHP For Windows: Binaries and sources Releases

我选的是8.2 点击ZIP下载

1.1. 配置php.ini

一开始只有开发和生产版本,php.ini需要自己手动改名

1.1.1. 开启openssl

1.1.2. 开启exenslon_dir="ext"

2. 安装composer

3. 配置环境变量

3.1. php:

3.2. composer

4. 测试项目安装

4.1. 项目安装:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires phpunit/phpunit ^10.5.16 -> satisfiable by phpunit/phpunit[10.5.16, ..., 10.5.20].
- phpunit/phpunit[10.5.16, ..., 10.5.20] require ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension.
Problem 2
- codeigniter4/framework[4.0.0, ..., v4.2.10] require ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.
- codeigniter4/framework[v4.2.11, ..., v4.5.1] require ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
- Root composer.json requires codeigniter4/framework ^4.0 -> satisfiable by codeigniter4/framework[4.0.0, ..., v4.5.1].

To enable extensions, verify that they are enabled in your .ini files:
- D:\phpstudy_pro\Extensions\php\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-mbstring --ignore-platform-req=ext-curl --ignore-platform-req=ext-intl` to temporarily ignore these required extensions.

简而言之就是缺少了一些依赖,去到php.ini开启即可

  • 10
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值