PHP APM with Linux
  • 1 Minute to read
  • Dark
    Light
  • PDF

PHP APM with Linux

  • Dark
    Light
  • PDF

Article summary

This document details how to install the PHP APM Profiler in your PHP application running on Linux.

Prerequisite

Follow the Retrace Linux Install Guide.

Enable the Stackify PHP Extension

Find the location of your php.ini file add the following section to it - adjust application and environment names.

[stackify]
extension=stackify.so
stackify.application_name=My PHP Application
stackify.environment_name=Production
Restart Your Web Server
After modifying your php.ini file, you must now restart your web server and PHP application server.
99-stackify.ini
Some installations may automatically add a 99-stackify.ini file to your PHP's ini directory so you can set the properties in this file instead of the main PHP configuration file. You can check the PHP Info page to confirm if this file has been loaded

Please restart any of the following:

  • PHP-FPM
  • NGINX
  • Apache
sudo service ABC_XYZ restart

Was this article helpful?