Skip to main content

Install the PHP profiler

This module will be deprecated soon.

The PHP profiler allows you to collect detailed information about the execution time of each part of a PHP application (e.g. Magento, Orocommerce...). The collected data will appear in a dedicated tab on the System data page.

Prerequisites​

Before installing the PHP profiler, you must install the system agent.

Compatibility​

DistributionOS VersionPHP VersionExperience Monitoring PHP Module
DebianBuster (10)7.3/7.4/8.0/8.1/8.2/8.31.3.4
DebianBullseye (11)7.3/7.4/8.0/8.1/8.2/8.31.3.4
DebianBookworm (12)7.4/8.0/8.1/8.2/8.31.3.4
UbuntuJammy (22.04)7.3/7.4/8.0/8.1/8.2/8.31.3.4
UbuntuKinetic (22.10)7.3/7.4/8.0/8.1/8.2/8.31.3.4
UbuntuLunar (23.04)7.3/7.4/8.0/8.1/8.2/8.31.3.4

Installation​

The PHP module must be installed on every server running your PHP application.

Step 1: install the package​

You must have added the Experience Monitoring repositories, which you should already have done during the system agent installation.

Depending on your PHP version, install the corresponding package. Here are a few examples:

  • For PHP 7.3:

    apt install php73-quanta-mon
  • For PHP 7.4:

    apt install php74-quanta-mon
  • For PHP 8.0:

    apt install php80-quanta-mon
  • For PHP 8.1:

    apt install php81-quanta-mon
  • For PHP 8.2:

    apt install php82-quanta-mon

Then, enable the extension with the following command:

phpenmod quanta_mon

Step 2 (optional): Configure your Magento backoffice URL​

If you use Magento and a custom URL is used to access the Magento backoffice (i.e., a URL that does not start with "/admin/"), you must modify the module configuration so that Magento-type events are correctly reported in Experience Monitoring.

This file is usually located here for Debian/Ubuntu:

/etc/php<VERSION>/mods-available/quanta_mon.ini

and here for CentOS:

/etc/php.d/quanta_mon.ini

However, this may vary depending on your PHP installation.

For example, if your backoffice URL is "http://admin.mysite.com/admin_123456/", you must enter the following parameter:

quanta_mon.admin_url="/admin_123456/"

Setp 3: Restart the web server​

After installing the module, you must restart your web service so that the PHP extension is loaded and activated.

  • For example, if you use Apache on Debian:

    systemctl restart apache2
  • If you use PHP-FPM, the command would be for example:

    systemctl restart php8.2-fpm

Check that everything works​

Once everything is installed and the web scenario has been created in Experience Monitoring, go to the Web Scenario menu, then click “+ details” in the legend of one of the pages requiring PHP execution (for example: a Cart page, which is usually never cached).

You should then see an “Application” tab (otherwise this tab is grayed out) with information about the time spent in PHP.

In the case of a Magento (v1 or 2) CMS or the OroCommerce platform, the color coding differs: it is orange for Magento and yellow for OroCommerce.