Say Goodbye to apache-, php, and php-pecl-* packages in Amazon Linux 2023: Here's What to Do Next!

Why the Removal?

Amazon is always striving to improve its products, and that includes keeping software packages up-to-date and secure. The apache-, php, and php-pecl- packages were removed from Amazon Linux 2023 due to outdated software and compatibility issues. As technology advances, it's essential to stay on top of these changes to ensure the best possible experience.

A New Era: PHP 8.1 and HTTPD Packages

While saying goodbye to the old packages might feel like a bitter pill to swallow, there's a silver lining: the fantastic alternative packages waiting for you. The php8.1 and httpd packages are here to save the day, offering better performance, security, and compatibility with the latest web technologies.

To install PHP 8.1, you can use the following command:


sudo yum install php8.1

For HTTPD (the Apache HTTP Server), use this command:


sudo yum install httpd

Check out the AL2023 Release notes for more information and guidance on how to work with these packages.

Update Your Dependencies, Especially UserData Scripts
As the older packages are no longer available, it's essential to update your dependencies accordingly. This is particularly

Trackback URL for this post:

https://www.kalexandr.com/trackback/125
Links: