Check Atatus PHP agent is installed correctly in your PHP version

If your system has multiple versions of PHP, Atatus will be installed only in top level PHP version. If your application server is using different PHP version, then you have to install Atatus PHP agent in that version too. It can done by specifying ATATUS_PHP_PATH during installation.

  • Lets say, the PHP is in the location /opt/plesk/php/7.3/bin, then you have to pass ATATUS_PHP_PATH=/opt/plesk/php/7.3/bin as follows

    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
    

Check your settings

  • Check if PHP Atatus configurations is configured with correct apm license key

    copy
    icon/buttons/copy
    php -i | grep atatus
    
  • Check if collector is running

    copy
    icon/buttons/copy
    ps aux | grep collector
    
  • Check if atatus.so is existing in the extension directory

    copy
    icon/buttons/copy
    php -i | grep extension_dir
    ll /usr/lib/php/20160303
    

Send following details to our Customer Success

Our team is very happy to help you to setup a PHP agent. Please drop us an email to success@atatus.com with following details

PHP information

  1. Share installation log file

    copy
    icon/buttons/copy
    cat atatus_install_log.txt
    
  2. Share the environment details

    copy
    icon/buttons/copy
    php -i
    
    copy
    icon/buttons/copy
    php --version
    
    copy
    icon/buttons/copy
    cat /etc/*-release
    

PHP logs

  1. Clear the log files

    copy
    icon/buttons/copy
    # > /var/log/atatus/agent.log
    # > /var/log/atatus/collector.log
    
  2. Change in atatus.ini

    copy
    icon/buttons/copy
    atatus.agent.log_level = "verbose_all"
    atatus.collector.log_level = "verbose_all"
    
  3. Restart the webserver (fpm/nginx/apache)

    copy
    icon/buttons/copy
    # Restart Apache for php service
    /etc/init.d/apache2 restart
    # OR
    apache2ctl restart
    
    copy
    icon/buttons/copy
    # Restart Nginx for php service
    /etc/init.d/nginx restart
    # OR
    service nginx restart
    
    copy
    icon/buttons/copy
    # Restart PHP-FPM Fastcgi for PHP service
    /etc/init.d/php-fpm restart
    # OR php 5 fpm:
    /etc/init.d/php5-fpm restart
    # OR php 7 fpm:
    /etc/init.d/php7.0-fpm restart
    
  4. Access two end points from your server

  5. Zip the atatus log directory

    copy
    icon/buttons/copy
    zip atatus.zip /var/log/atatus
    
  6. Send the zipped file to success@atatus.com

  7. To reset the log_levels, make the following change in atatus.ini and restart the service.

    copy
    icon/buttons/copy
    atatus.agent.log_level = "warning"
    atatus.collector.log_level = "warning"