小编goo*_*ose的帖子

在 AWS 上自定义 EC2 实例 php.ini 文件时出错

我在 AWS 上使用 Elastic Beanstalk,我试图覆盖 php.ini 文件中的一些设置。我已经在目录 /.ebextensions 中创建了 project.config :

files:
  "/etc/php.d/project.ini" :
  mode: "000644"
  owner: ec2-user
  group: ec2-user
  content: |
    date.timezone = "Europe/Berlin"
    error_reporting = E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING
    display_errors = Off
Run Code Online (Sandbox Code Playgroud)

当我重新部署应用程序时,EBS 抛出以下错误:

The configuration file __MACOSX/gf/.ebextensions/._project.config in application version gf3 contains invalid YAML or JSON. YAML exception: unacceptable character '' (0x0) special characters are not allowed in "<reader>", position 0, JSON exception: Unexpected character () at position 0.. Update the configuration file.
Run Code Online (Sandbox Code Playgroud)

我做错了什么? …

php amazon-web-services elastic-beanstalk

1
推荐指数
1
解决办法
2988
查看次数