我已经为亚马逊弹性但配置添加了两个文件,但它不起作用。
.elasticbeanstalk \ eb.config
files:
"/etc/php.d/project.ini" :
mode: "000644"
owner: root
group: root
content: |
extension=php_gmp.dll
.elasticbeanstalk \ software.config
packages:
yum:
php7.0-gmp: []
答案 0 :(得分:1)
我正在努力解决同样的问题。解决方案是安装php70-gmp并将扩展添加到ini:
在any.config中:
container_commands:
01_install_gmp:
cwd: /tmp
command: |
sudo yum install -y php70-gmp
files:
/etc/php.d/z_project.ini:
mode: "000644"
owner: root
group: root
content: |
extension=gmp.so
答案 1 :(得分:0)
几天后。这对我有用,
命令:
command1:
command: sudo yum install -y php73-gmp
command2:
command: sudo restart httpd