fix(php): Add awslinux recipe to address al2023 failures #1256
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This recipe will install on al2023 in a way that complies with our stated compatibilities.
When running the Virtuoso Recipe query on status=FAILED PHP agent installs, most of them stem from the fact that yum is used to install the agent on Amazon Linux 2023, even though yum install method is not supported on Amazon Linux 2023 - https://docs.newrelic.com/docs/apm/agents/php-agent/getting-started/php-agent-compatibility-requirements/#operating-systems.
Amazon Linux 2023 (AL2023) is not directly based on a specific RHEL version. While Amazon Linux 2 was based on RHEL 7, AL2023 uses a combination of Fedora Linux and CentOS Stream as its upstream sources. Specifically, the initial release incorporates parts of Fedora 34, 35, 36, and CentOS 9 Stream and as such is not compatible with our rpm package.
More info here: https://support.newrelic.com/s/hubtopic/aAX8W000000L5iEWAS/php-failed-to-install-new-relic-in-my-amazon-linux-2023-server
Additionally, AL2023 uses DNF (the yum call is just a wrapper to DNF) which is "mostly" similar, but again, not compatible with our yum install method and AL2023 is specifically mentioned as a tarball only install: https://docs.newrelic.com/docs/apm/agents/php-agent/getting-started/php-agent-compatibility-requirements/#operating-systems.
The yum task was only included in the redhat.yml recipe so customers would have the option to later user the rpm manager for agent updates.
As such the call to yum is unnecessary for AL2023 installs since only tarball installation is supported.
The query for PHP agent installs with al2023 now shows the agent getting successfully installed with the new recipe.
