Skip to content
Advertisement

Issue with deploying PHP Application to Elastic Beanstalk

I have a customized PHP application I am trying to deploy using Elastic Beanstalk. To deploy using ELB, I have zipped up the code and uploaded. I’m having trouble getting it to deploy correctly. Is there a correct way to zip and deploy?

Following errors showing up:

[Instance: i-1z123x1111a1z9999] Command failed on instance. An unexpected error has occurred [ErrorCode: 0000000001].

Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].

Unsuccessful command execution on instance id(s) ‘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

Advertisement

Answer

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. mod24_ssl is only avaiablie on Amazon Linux 1, not Amazon Linux 2.

On Amazon Linux 2, the package is called mod_ssl. Thus to install it the following command can be used

sudo yum install -y mod_ssl
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement