在 php 8.2 amazon linux elastic beanstalk 上安装 zip 模块

问题描述 投票:0回答:1

我很确定 zip 扩展名默认包含在亚马逊管理的 php elb 图像中。

通常的方法是将这样的配置文件添加到 .ebextensions

packages:
    yum:
        php-zip70: []

但是这不再起作用了。

有什么想法吗?

php amazon-web-services amazon-elastic-beanstalk pecl
1个回答
0
投票

截至 23 年 8 月 17 日,这似乎对我有用

将这样的配置文件添加到 .ebextensions

files:
  "/etc/php.d/98_zip.ini":
    mode: "000644"
    owner: root
    group: root
    content: |
      extension=zip.so
commands:
  01_remove_old_config:
    command: "rm -f /etc/php.d/98_zip.ini.bak"
  02_install_stuff:
    command: "dnf -y install libzip libzip-devel"
  03_install_more_stuff:
    command: "pecl install zip"
© www.soinside.com 2019 - 2024. All rights reserved.