首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用PHP8.1的AWS弹性BeanStalk

使用PHP8.1的AWS弹性BeanStalk
EN

Stack Overflow用户
提问于 2022-06-01 21:47:30
回答 1查看 830关注 0票数 4

试图升级弹性豆茎到php 8.1,我需要它的作曲家monolog和symfony。错误日志显示我在8.0上。

在.eb扩展名/02_my_Commands.config中,我尝试添加此命令,但没有收到任何命令错误。

代码语言:javascript
复制
commands:
  00_upgrade_php:
    command: |
      sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
      sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
      sudo yum -y install yum-utils
      sudo yum -y install rpl
      export LC_ALL=en_US.UTF-8
      export LANG=en_US.UTF-8
      sudo yum-config-manager --disable 'remi-php*'
      sudo yum-config-manager --enable remi-php81
      rpl [remi-php81] "[remi-php81]\npriority=1" /etc/yum.repos.d/remi-php81.repo -e
      sudo yum upgrade -y php php-*

不过,它说我还在PHP8.0版上,我不明白为什么

以下是错误:

代码语言:javascript
复制
Problem 1
    - monolog/monolog is locked to version 3.0.0 and an update of this package was not requested.
    - monolog/monolog 3.0.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
  Problem 2
    - symfony/translation is locked to version v6.1.0 and an update of this package was not requested.
    - symfony/translation v6.1.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
  Problem 3
    - symfony/translation-contracts is locked to version v3.1.0 and an update of this package was not requested.
    - symfony/translation-contracts v3.1.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
  Problem 4
    - monolog/monolog 3.0.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
    - google/apiclient v2.12.5 requires monolog/monolog ^1.17||^2.0||^3.0 -> satisfiable by monolog/monolog[3.0.0].
    - google/apiclient is locked to version v2.12.5 and an update of this package was not requested.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-10-10 18:11:54

升级平台版本可能会解决您的问题,它应该附带已安装的php8.1 AWS PHP平台

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72468413

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档