If your system has multiple versions of PHP, Atatus will be installed only in the top-level PHP version. If your application server is using a different PHP version, you must install the Atatus PHP agent in that version as well. This can be done by specifying the ATATUS_PHP_PATH during installation.

Installation

Option 1: Provide PHP Path

  • Let's say PHP is located at /opt/plesk/php/7.3/bin. In that case, you need to pass ATATUS_PHP_PATH=/opt/plesk/php/7.3/bin as follows:

    Example (Plesk - PHP 7.3):

    copy
    icon/buttons/copy
    sudo ATATUS_PHP_PATH=/opt/plesk/php/7.3/bin \
        ATATUS_LICENSE_KEY="APM_LIC_KEY" \
        ATATUS_APP_NAME="YOUR_APP_NAME" \
        bash install.sh
    

    Example (cPanel - PHP 8.1):

    copy
    icon/buttons/copy
    sudo ATATUS_PHP_PATH=/opt/cpanel/ea-php81/root/usr/bin \
        ATATUS_LICENSE_KEY="APM_LIC_KEY" \
        ATATUS_APP_NAME="YOUR_APP_NAME" \
        bash install.sh
    

Option 2: Provide PHP Binary Path (if binary name is different)

  • If the PHP binary name is not php (e.g., php73, php8, php81), pass the full binary path.

    Example (Plesk - PHP binary named php73):

    copy
    icon/buttons/copy
    sudo ATATUS_PHP_PATH=/opt/plesk/php/7.3/bin/php73 \
        ATATUS_LICENSE_KEY="APM_LIC_KEY" \
        ATATUS_APP_NAME="YOUR_APP_NAME" \
        bash install.sh