DEV Community

Ali Shaikh
Ali Shaikh

Posted on

3

Upgrade AWS Elastic Beanstalk from PHP 7.4 to PHP 8.0

Upgrade AWS Elastic Beanstalk from PHP 7.4 to PHP 8.0

The AWS Elastic Beanstalk Console currently only permits you to change between minor platform versions (e.g. from 64bit Amazon Linux 2 v3.1.6 running PHP 7.4 to 64bit Amazon Linux 2 v3.2.1 running PHP 7.4), but does not allow changes between major versions (e.g. from 64bit Amazon Linux 2 v3.2.1 running PHP 7.4 to 64bit Amazon Linux 2 v3.2.1 running PHP 8.0).

But, fret not!!! It is possible to update to a major platform version using the AWS Command Line Interface (CLI):

aws elasticbeanstalk update-environment --solution-stack-name "64bit Amazon Linux 2 v3.2.1 running PHP 8.0" --environment-id "x-xxxxxxxxxx" --region "us-west-1"
Enter fullscreen mode Exit fullscreen mode

To find the newest PHP platform version AWS Elastic Beanstalk supports view the Elastic Beanstalk Supported Platforms.

For previous versions see the PHP Platform History.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay