• /
  • EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

PHP agent installation: Amazon Linux 2, RedHat, CentOS (x86_64)

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.

  1. Make sure you have your accessible.

  2. Use either of the following ways to obtain the installation package:

  3. Install the agent and daemon using your preferred package manager:

  4. Run the newrelic-install script and follow the instructions.

    bash
    $
    sudo newrelic-install install
  5. Restart your web server (Apache, NGINX, PHP-FPM, etc.).

  6. 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.

이 문서가 설치하는데 도움이 되셨나요?

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.