---
title: "Detecting slow PHP requests"
canonical_url: "https://www.zone.lv/help/kb/detecting-slow-php-requests/"
post_type: "ht_kb"
published: "2021-01-28T13:05:07+00:00"
modified: "2026-02-13T14:00:39+00:00"
language: "en"
author: "Ardi Jürgens"
taxonomies:
  ht_kb_category:
    - name: "SSH / Shell"
      url: "https://www.zone.lv/help/kb-categories/ssh-shell-en/"
    - name: "Technical"
      url: "https://www.zone.lv/help/kb-categories/technical-en/"
  ht_kb_tag:
    - name: "php"
      url: "https://www.zone.lv/help/kb-tags/php-eng/"
    - name: "requests"
      url: "https://www.zone.lv/help/kb-tags/requests/"
    - name: "SSH"
      url: "https://www.zone.lv/help/kb-tags/ssh/"
    - name: "tehniline"
      url: "https://www.zone.lv/help/kb-tags/tehniline-eng/"
---

# Detecting slow PHP requests

Console access is required to view web server log files. [Establishing an SSH connection](https://www.zone.lv/help/en/kb/establishing-an-ssh-connection/)

On the Zone server platform, the real-time web server logs are situated in the `logs` directory. HTTP and HTTPS logs are located separately, i.e. `apache.access.log` and `apache.ssl.access.log`. In one file, the logs of both the main domain and the subdomain are launched simultaneously.

To view the log, first go to the `logs` directory using the `cd` command.

`cd domeenid/www.yourdomain.lv/logs/`

Use `tail -f apache.ssl.access.log` command to view all web server requests on the go. Now, when you refresh the website in the browser, your requests will be displayed in the logs. You can exit `tail -f` mode by pressing `Ctrl + c`.

In order to view only PHP requests, you can use an *alias* `grep-php`.

For example: `grep-php apache.ssl.access.log` or `tail -f apache.ssl.access.log | grep-php`.

At the end of each line, there is an 8-digit *hash* in parentheses, consisting of arbitrary numbers and letters, followed by a hyphen and time in seconds. For example: `(94E76104-0.074)` indicates that the corresponding request took 0.074 seconds or 74 milliseconds. If there are only three hyphens in parentheses `---`, then the corresponding request did not go through the PHP interpreter.

Apart from the `grep-php` *alias* which shows all PHP requests, there are also *aliases* to filter out slow PHP requests.

`grep-phpslow` shows PHP requests that take more than 2 seconds to complete, and `grep-phpveryslow` shows PHP requests that take more than 10 seconds to complete.
