---
title: "PHP APM with Linux"
slug: "php-apm-with-linux"
description: "Install PHP APM Profiler on Linux. Follow the guide to enable Stackify PHP extension and restart your web server for seamless monitoring."
updated: 2024-04-24T05:46:00Z
published: 2024-04-24T05:46:00Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP APM with Linux

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

## Prerequisite

Follow the [Retrace Linux Install](/docs/linux-installation) 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
```
