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

  • 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/

  • Add the 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/ 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