Installing the PHP Agent with RPM

To install PHP Agent with RPM:
  1. Verify support and system requirements for your environment as described in Install the PHP Agent.
  2. Set environment variables with the configuration settings for the agent if needed.
    The account key is a required setting. Other settings may be required depending on your environment. See RPM Environment Variables for more information. Alternatively, you can pass environment variables to the installation script directly.
  3. Run the installer.
    sudo rpm -i <package_name>
    
    Replace <package_name> with the name of the package you downloaded. If you are using sudo to pass the environment variables to the installation script you can use:
    sudo APPD_PHP_PATH=/opt/php rpm -i <package_name>
    Or
    APPD_PHP_PATH=/opt/php sudo -E rpm -i <package_name>
  4. Restart Apache.
    Not required if you are installing an agent to monitor PHP CLI only.
The RPM installs a single agent. If you have more than one PHP installation on the machine, run the RPM once for each PHP installation, each time with the appropriate APPD_PHP_PATH APPD_CONF_NODE settings.