Our PHP agent auto-instruments your code so you can start monitoring applications. Follow this procedure to install New Relic's PHP agent for APM using Amazon Linux 2, RedHat, or CentOS. Exception: If you have an earlier version installed, upgrade the agent instead.
Install the agent
Even though the package name for New Relic's PHP agent refers to PHP 5, the package works for all supported PHP versions.
Make sure you have your accessible.
Use either of the following ways to obtain the installation package: