简体   繁体   English

将 PHP 应用程序部署到 Elastic Beanstalk 时出现问题

[英]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.

相关问题 在Elastic Beanstalk中部署Zend应用程序? - Deploying Zend application in Elastic Beanstalk? 在Elastic beantalk AWS中部署应用程序 - Deploying application in elastic beanstalk AWS 使用弹性beantalk进行PHP应用程序部署 - PHP application deployment with elastic beanstalk 将 Laravel 应用程序部署到 AWS Elastic Beanstalk 时出现“403 Forbidden”错误 - Getting a '403 Forbidden' error on deploying a Laravel application to AWS Elastic Beanstalk SaaS在Elastic Beanstalk上的应用 - SaaS application on Elastic Beanstalk Elastic Beanstalk - 自定义 Nginx 配置文件 - PHP Web 应用程序 - Elastic Beanstalk - Customize Nginx configuration files - PHP Web Application 如何将客户端连接到Elastic Beanstalk(AWS)上的PHP应用程序 - How to connect a client to a PHP application on Elastic Beanstalk (AWS) 找不到示例 php elastic beantalk web 应用程序生成的日志 - cannot find log produced by sample php elastic beanstalk web application 将Symfony2应用程序部署到AWS Elastic Beanstalk - 部署后缓存清除 - Deploying Symfony2 Application to AWS Elastic Beanstalk - Post Deployment Cache Clearing 使用Docker的开发环境并部署到AWS Elastic Beanstalk - Development environment with Docker and deploying to AWS Elastic Beanstalk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM