添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
);}h1 .anchor svg,h2 .anchor svg,h3 .anchor svg,h4 .anchor svg,h5 .anchor svg,h6 .anchor svg{opacity:0;-webkit-transition:opacity 0.2s ease-out;transition:opacity 0.2s ease-out;}h1:hover .anchor svg,h2:hover .anchor svg,h3:hover .anchor svg,h4:hover .anchor svg,h5:hover .anchor svg,h6:hover .anchor svg,h1 .anchor:focus svg,h2 .anchor:focus svg,h3 .anchor:focus svg,h4 .anchor:focus svg,h5 .anchor:focus svg,h6 .anchor:focus svg{opacity:1;}h1 code,h2 code,h3 code,h4 code,h5 code,h6 code{font-size:inherit;}h1 var,h2 var,h3 var,h4 var,h5 var,h6 var,h1 mark,h2 mark,h3 mark,h4 mark,h5 mark,h6 mark{font-size:inherit;}h1{line-height:1.15;font-weight:bold;margin-bottom:1rem;}h2{line-height:1.75rem;margin-bottom:0.75rem;font-weight:600;}h3{margin-bottom:0.75rem;font-weight:600;}h4,h5,h6{margin-bottom:0.5rem;font-weight:600;}ol,ul{margin:0;padding-left:1.75rem;}ol >li,ul >li{line-height:1.969rem;margin:0.344rem 0;}ul>li::marker{color:var(--system-text-secondary-light);}.dark-mode ul>li::marker{color:var(--system-text-secondary-dark);}ul ul li::marker{color:var(--color-black);}.dark-mode ul ul li::marker{color:var(--color-white);}code,var{font-family:var(--code-font);white-space:pre-wrap;}*:not(pre)>code,var,mark{padding:0.2em 0.4em;border-radius:3px;font-size:85%;word-break:break-word;}blockquote{border-left:0.25rem solid var(--secondary-text-color);color:var(--secondary-text-color);padding:0.25rem 1rem;margin:0;font-style:italic;}pre{margin:0;}hr{border:none;border-bottom:1px solid var(--divider-color);}var,mark{line-height:1.25;display:inline;}var{font-style:normal;}mark{background:var(--code-console-text-highlight);}figcaption{font-size:0.75rem;color:var(--accent-text-color);}.gatsby-resp-image-wrapper,.gatsby-resp-image-image,.gatsby-resp-image-background-image{border-radius:0.25rem;}.grecaptcha-badge{;}.osano-cm-widget{;}.screenreader-only{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;}.header-anchor{top:0;left:0;-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);padding-right:4px;}

PHP agent installation: ARM64

Important

If you're compiling from source, ARM64 is only supported with New Relic PHP agent release 9.18.1 through release 10.9.0. ARM64 binaries are ONLY provided starting with the New Relic PHP Agent release 10.10.0 or later.

Tarball installation

To install or update the New Relic PHP agent on ARM64 with the New Relic PHP Agent release 10.10.0 or later, please follow the instructions for installing from a tarball found in our docs for installation instructions.

Build from source

To install or update the New Relic PHP agent on ARM64 with the New Relic PHP Agent release 9.18.0 - 10.9.0, you must install New Relic's PHP agent source for ARM64 platforms github.com/newrelic/newrelic-php-agent .

Building the New Relic PHP Agent for ARM64 from source is only supported for Amazon Linux 2 and CentOS Linux 8 (including use with AWS Graviton 2 processor )

Install dependencies

  1. Run the appropriate code:

    For Amazon Linux 2:

    bash
    $
    sudo yum update -y
    $
    sudo yum install -y git
    $
    sudo yum install -y amazon-linux-extras
    $
    sudo amazon-linux-extras install -y epel
    $
    sudo amazon-linux-extras install -y golang1.11
    $
    sudo yum -y groupinstall "Development Tools"
    $
    sudo yum -y install \
    >
    libcurl-devel \
    >
    openssl-devel openssl-static \
    >
    pcre-devel pcre-static \
    >
    zlib-devel zlib-static
    $
    sudo amazon-linux-extras install -y php8.0
    $
    sudo yum install -y php-devel

    For CentOS 8 Ensure you have PHP 8.0 or 8.1 installed

    bash
    $
    sudo yum update -y
    $
    sudo yum -y install epel-release
    $
    sudo yum -y groupinstall "Development Tools"
    $
    sudo yum -y install dnf-plugins-core
    $
    sudo yum config-manager --set-enabled powertools
    $
    sudo 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:

  1. make all OPTIMIZE=1
  2. sudo make agent-install
  3. sudo mkdir /var/log/newrelic
  4. sudo chmod 777 /var/log/newrelic
  5. sudo cp bin/daemon /usr/bin/newrelic-daemon

Configure the agent

  1. Copy agent/scripts/newrelic.ini.template file to the same directory as php.ini . (Run php --ini to get its file path.)

  2. 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).

Did this doc help with your installation?