To install or update our PHP agent on ARM64, you must install New Relic's PHP agent source for ARM64 platforms github.com/newrelic/newrelic-php-agent.
ARM64 is only supported for Amazon Linux 2 and CentOS Linux 8 (including use with AWS Graviton 2 processor)
Install dependencies
Run the appropriate code:
For Amazon Linux 2:
sudo yum update -ysudo yum install -y gitsudo yum install -y amazon-linux-extrassudo amazon-linux-extras install -y epelsudo amazon-linux-extras install -y golang1.11sudo yum -y groupinstall "Development Tools"sudo yum -y install \libcurl-devel \openssl-devel openssl-static \pcre-devel pcre-static \zlib-devel zlib-staticsudo amazon-linux-extras install -y php8.0sudo yum install -y php-develFor CentOS 8 Ensure you have PHP 8.0 or 8.1 installed
sudo yum update -ysudo yum -y install epel-releasesudo yum -y groupinstall "Development Tools"sudo yum -y install dnf-plugins-coresudo yum config-manager --set-enabled powertoolssudo yum -y install libcurl-devel php-devel openssl-devel pcre-devel pcre-static zlib-devel zlib-static golang
Clone the agent
Important
ARM64 is only supported from release 9.18.1 or later.
Clone from github.com/newrelic/newrelic-php-agent. Here, you can also suggest a change and learn how to contribute to our PHP agent open source repository.
Build
Tip
The file docs/development.md in the newrelic-php-agent repository has an in-depth guide for installation.
Run the following from the top of the cloned repository:
make all
sudo make agent-install
sudo mkdir /var/log/newrelic
sudo chmod 777 /var/log/newrelic
sudo cp bin/daemon /usr/bin/newrelic-daemon
Configure the agent
Copy
agent/scripts/newrelic.ini.template
file to the same directory asphp.ini
. (Runphp --ini
to get its file path.)Once you've created
newrelic.ini
and put it in the correct location, edit the file to add the following:- Add a valid to the line
newrelic.license = "INSERT_YOUR_LICENSE_KEY"
. - Change the application name that's shown in one.newrelic.com on the line
newrelic.appname = "PHP Application"
(optional).
- Add a valid to the line