How to request php8.1 to be added to amazon-linux-extras

8

We are currently using php8.0 (via amazon-linux-extras) on our EC2 servers running Amazon Linux 2 and we would like to upgrade to php8.1. We know we can build php8.1 completely from source, and we know we can do things like add REMI repo and install it with yum. But with our current server setup things would be a lot cleaner of it were available out of the box in amazon-linux-extras.

So my question/s are:

  • Is there some sort of request process to request php8.0 gets upgrade to php8.1 in amazon-linux-extras?
  • It is there any way to see the status of new packages coming to amazon-linux-extras in future updates?
  • Is there any reasons why it may not be in there currently/in the future (Eg. only LTS packages are added)
  • Yeah. we are waiting on this as well. its seems buggy building php 8.1 from source.

  • While we're currently left without knowing when/if it will be done (saying it won't be done, if true, will at least let people know they should do this a different way.) It's been asked here multiple times:

    1. https://bit.ly/3TwqRCZ
    2. https://bit.ly/3Sb8P8i
    3. https://bit.ly/3TfJlIm

    While it's also been brought up on the Elastic Beanstalk discussion at https://bit.ly/3ME1xsC where it was added to EB months ago while it's also been discussed there how it seems like a real oversight to not also add it to amazon-linux-extras at the same time (then discussing that lingering topic there as well.)

asked 2 years ago3024 views
5 Answers
4

We are interested in official 8.1 support. We are holding some releases until we have 8.1 available through amazon-linux-extras

answered 2 years ago
2

Symfony 6.1 is loaded as a dependency when installing Laravel 8.8. Symfony 6.1 requires PHP 8.1. I guess AWS does not plan to support Laravel 8 or 9 on its EC2 instances?

answered 2 years ago
  • I mean, AWS has officially stated Amazon Linux 2 will be supported through June 2024 and it would seem crazy that one of the more important features (the way the OS recommends managing the PHP versions as they're released & other select software without using an external/separate service like elastic beanstalk, docker, external builds of the software, etc.) would be left without necessary updates (especially considering PHP's supported version timeline) for multiple years before the end of support on the OS.

    Might as well just say that OS isn't supported anymore if that were the case (while Amazon Linux 2022 is still in release candidate status [I wonder if it will even come out in 2022] so they don't really have their successor to AL2 available to be used so it seems Amazon Linux is kinda just not getting the attention it needs.)

    Then again, one should expect the OS & its recommended software would be supported. Here's hoping they get 8.1 added before 8.0 falls out of support from PHP itself. Also, really curious why it was added just to be removed days later per what happened about a week ago. So it's like they're almost doing what's needed... no idea why it was then removed from being available.

1
Accepted Answer

This is now available in Amazon Liunx Extras.

EDIT: This has since been removed by AWS. Fun times.

I had been waiting for it for so long I built a fargate bot to run every day to see if php8.1 was available. When it was I got this posted in our dev slack channel.

Slack message showing php8.1 is available on AWS EC2, surrounded by animated birds

I logged onto my EC2 and double checked and this is what I got.

[ec2-user@ip-AA-BB-CC-DD ~]$ amazon-linux-extras | grep php
  _  php7.4                   available    [ =stable ]
 51  php8.0=latest            enabled      [ =stable ]
  _  php8.1                   available    [ =stable ]

I also confirmed that when I went and looked today this is now gone.

answered 2 years ago
0

For anyone looking (that's how I came across this post), I'm now seeing php.8.1 as being available:

$ amazon-linux-extras | grep php
php7.4=latest       enabled      [ =stable ]
php8.0                   available    [ =stable ]
php8.1                   available    [ =stable ]
greg
answered a year ago
  • Yes it is, our apps are running on laravel 9 with php 8.1 now 🎉

-5

Hello Brad, Thank you for your post. The Amazon Linux Team has taken this request into its backlog, and will prioritize it along with our other packaging requests. As always, demand and use cases from our customer base drive our prioritization, and your feedback is always welcome. We cannot provide a timeline or guarantee for availability of this package from Amazon Linux's repositories.

AWS
SUPPORT ENGINEER
answered 2 years ago
  • This needs to be moved off the backlog. It's not acceptable. PHP 8 will reach EOL November 2022.

  • Still backlog for adding support to a PHP version that's nearly half of it's active development lifetime when it was added to Elastic Beanstalk months ago? Do we even have confirmation that this is planning to be done and/or will we be waiting until 8.0 actually hits end of development (next month) or end of security support (in ~1 year) before it's added?

    Just knowing the answer to those questions will help determine if one should wait for this or if this should be added via an alternative method for those that used the official Amazon Linux 2 AMI (then test/migrate before 8.0 support ends.)

  • Seriously... how can AWS not confirm/deny that PHP 8.1 will be added to Amazon Linux Extras? The question has lingered for nearly a year now (support was requested a couple days after PHP 8.1 was released [as one would expect]), and nobody has made the decision to plan to add what's clearly needed for those using the Amazon Linux 2 AMI and the PHP setup it comes with? That "We cannot provide a timeline or guarantee for availability of this package from Amazon Linux's repositories." line really is not a good thing to hear when it's a foundational requirement for so many.

  • How much more feedback do you need though? There's multiple threads on re:Post asking for it. It's been a year... We're almost at EOL for 8.0 and 8.2 will probably be available soon too.

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