By using AWS re:Post, you agree to the AWS re:Post Terms of Use

php beanstalk application will not start

0

Hello,

I want to create php application on Beanstalk with AWS Console GUI in single instance or high availability mode, but the app never starts. Enter image description here

Maybe this is the reason? Enter image description here

Cnan I somehow generate all app configuration to be able to post it here?

What should i do to be able to start the app from GUI? Thanks

asked a month ago83 views
2 Answers
1
Accepted Answer

Hello.

AWS has deprecated the use of launch configurations.
Therefore, you must configure AutoScaling using launch templates in ElasticBeanstalk as well.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-autoscaling-launch-templates.html

Starting on October 1, 2024, the Amazon EC2 Auto Scaling service will no longer support the creation of launch configurations for new accounts. This change is due to launch configurations being phased out and replaced by launch templates by the Amazon EC2 Auto Scaling service. For more information, see Auto Scaling launch configurations in the Amazon EC2 Auto Scaling User Guide.

To use the launch template, you should be able to use it by setting "RootVolumeType" to "gp3" or "DisableIMDSv1" to "true" as described in the following document.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-autoscaling-launch-templates.html#environments-cfg-autoscaling-launch-templates-options

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • Thanks, it works. AWS should set this as a default.

-2

I apologize, but I don't have enough information from the provided sources to directly address your specific issue with the PHP application not starting on Elastic Beanstalk. However, I can provide some general guidance on deploying PHP applications to Elastic Beanstalk that may help:

  1. Ensure you have a valid PHP application source bundle to upload as your first application version. This should contain all necessary files for your PHP application.

  2. Check that you're using a supported PHP version on Elastic Beanstalk. AWS Elastic Beanstalk supports various PHP platform branches for different PHP versions.

  3. Verify your application's configuration settings in the Elastic Beanstalk console. You may need to adjust PHP settings, environment variables, or other options.

  4. Review the Elastic Beanstalk logs for any error messages or issues that might be preventing your application from starting.

  5. Consider using the Elastic Beanstalk Command Line Interface (EB CLI) to deploy your application, as it can sometimes provide more detailed error information.

  6. Ensure your application code is compatible with the Elastic Beanstalk environment and doesn't have any dependencies that are missing or incompatible.

If you continue to experience issues, you may need to provide more specific error messages or logs to diagnose the problem accurately. You might also want to test your PHP application locally before deploying to Elastic Beanstalk to ensure it runs correctly.
Sources
QuickStart: Deploy a PHP application to Elastic Beanstalk - AWS Elastic Beanstalk
Using the Elastic Beanstalk PHP platform - AWS Elastic Beanstalk
Deploying PHP applications with Elastic Beanstalk - AWS Elastic Beanstalk

profile picture
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions