Install New Relic for PHP

New Relic is a real-time Web application that runs in cloud, on-premise, or hybrid environments. Follow these steps to configure New Relic for PHP with Bitnami.

  • Download the tarball from https://download.newrelic.com/php_agent/release/2.

  • Uncompress it in your machine:

    $ tar -xzf newrelic-php5*.tar.gz
    • Apply the following patch before running the installer:

      $ cd newrelic* $ sed -i ’s/${pi_bin} -n/${pi_bin}/’ newrelic-install

  • Run the New Relic install script:

    $ sudo ./newrelic-install
  • Check that the module was correctly installed at /opt/bitnami/php/lib/php/extensions/newrelic.so.

  • Add the newrelic.so module in the PHP configuration file at /opt/bitnami/php/etc/php.ini, at the end:

  • Check that it was properly added by running php -m and verifying that the New Relic extension is enabled.

  • Restart Apache.

    $ sudo /opt/bitnami/ctlscript.sh restart apache
    • Check that the New Eelic service is running:

      $ sudo /etc/init.d/newrelic-daemon status New Relic Daemon: newrelic-daemon is running

Last modification September 7, 2018