[英]Issue with deploying PHP Application to Elastic Beanstalk
I have a customized PHP application I am trying to deploy using Elastic Beanstalk.我有一个自定义的 PHP 应用程序,我正在尝试使用 Elastic Beanstalk 进行部署。 To deploy using ELB, I have zipped up the code and uploaded.
要使用 ELB 进行部署,我已将代码压缩并上传。 I'm having trouble getting it to deploy correctly.
我无法正确部署它。 Is there a correct way to zip and deploy?
zip 和部署是否有正确的方法?
Following errors showing up:出现以下错误:
[Instance: i-1z123x1111a1z9999] Command failed on instance. [实例:i-1z123x1111a1z9999] 实例上的命令失败。 An unexpected error has occurred [ErrorCode: 0000000001].
发生意外错误 [ErrorCode: 0000000001]。
Command execution completed on all instances.已在所有实例上完成命令执行。 Summary: [Successful: 0, Failed: 1].
摘要:[成功:0,失败:1]。
Unsuccessful command execution on instance id(s) 'i-1z123x1111a1z9999'.对实例 ID 'i-1z123x1111a1z9999' 的命令执行不成功。 Aborting the operation.
中止操作。
Failed to deploy application.未能部署应用程序。
During an aborted deployment, some instances may have deployed the new application version.在中止部署期间,某些实例可能已经部署了新的应用程序版本。 To ensure all instances are running the same version, re-deploy the appropriate application version.
为确保所有实例都运行相同的版本,请重新部署相应的应用程序版本。
Please guide in any way possible.请以任何可能的方式进行指导。
Thanks谢谢
From the other conversation, the error从另一个对话中,错误
Yum does not have mod24_ssl available for installation
is due to fact that PHP 7.4 running on 64bit Amazon Linux 2/3.0.3
is used.是因为使用了
PHP 7.4 running on 64bit Amazon Linux 2/3.0.3
。 mod24_ssl
is only avaiablie on Amazon Linux 1 , not Amazon Linux 2 . mod24_ssl
仅在Amazon Linux 1上可用,在 Amazon Linux 2上不可用。
On Amazon Linux 2 , the package is called mod_ssl
.在Amazon Linux 2上,package 称为
mod_ssl
。 Thus to install it the following command can be used因此要安装它,可以使用以下命令
sudo yum install -y mod_ssl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.