Bitnami New Relic for AWS Cloud

New Relic is a real-time application performance monitoring and management solution.

How to install the New Relic plugin agent?

The New Relic plugin agent polls supported back-end systems and submits the results to the New Relic platform. Follow these installation steps:

  • Install the agent using pip:

     $ sudo pip install newrelic-plugin-agent
     Downloading/unpacking newrelic-plugin-agent
     Downloading newrelic_plugin_agent-1.3.0.tar.gz
     Running egg_info for package newrelic-plugin-agent
     Downloading/unpacking helper>=2.2.2 (from newrelic-plugin-agent)
     Downloading helper-2.4.1.tar.gz
     Running egg_info for package helper
     Downloading/unpacking requests>=2.0.0 (from newrelic-plugin-agent)
     Downloading requests-2.3.0.tar.gz (429kB): 429kB downloaded
     Running egg_info for package requests
     Requirement already satisfied (use --upgrade to upgrade): pyyaml in /opt/bitnami/python/lib/python2.7/site-packages (from helper>=2.2.2->newrelic-plugin-agent)
     Installing collected packages: newrelic-plugin-agent, helper, requests
     Running install for newrelic-plugin-agent
     Installing newrelic-plugin-agent script to /opt/bitnami/python/bin
     Running install for helper
     Found existing installation: requests 1.2.3
     Uninstalling requests:
       Successfully uninstalled requests
     Running install for requests
     Successfully installed newrelic-plugin-agent helper requests
     Cleaning up...
  • Run the following command to start the New Relic Plugin agent:

     $ sudo python /opt/bitnami/python/bin/newrelic-plugin-agent -c /opt/newrelic-plugin-agent/newrelic-plugin-agent.cfg -f

    It is also possible to run the plugin agent without specifying the python command before. To do this, change the first line of the /opt/bitnami/python/bin/newrelic-plugin-agent script as follows:

     #!/usr/bin/env python

    Then, start the agent using the following command:

     $ sudo newrelic-plugin-agent -c /opt/newrelic-plugin-agent/newrelic-plugin-agent.cfg -f

How to 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

Bitnami Documentation