Important
The New Relic PHP Agent RPM signing key will be rotated in March 2026. To continue using the agent uninterrupted, the new key must be imported on all systems installing via rpm/yum with the following command. For more information, refer PHP agent installation: RPM key rotation 2026.
rpm --import https://download.newrelic.com/php_agent/NEWRELIC_RPM_BD2E199C.public
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 on x86_64 architecture. For installation on aarch64 architecture, please use tar file method. 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.
Add the new RPM key (Only applicable from starting of March 2026.)
bash$rpm --import https://download.newrelic.com/php_agent/NEWRELIC_RPM_BD2E199C.publicUse either of the following ways to obtain the installation package:
Install the agent and daemon using your preferred package manager:
Run the
newrelic-installscript and follow the instructions.bash$sudo newrelic-install installRestart your web server (Apache, NGINX, PHP-FPM, etc.).
Generate traffic to your application, and wait a few minutes for it to send data to New Relic. Then, check your app's performance in the UI.