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

# Checking Error Logs

Error logs record problems encountered by your website, including PHP errors, application crashes, and server-level issues. Checking them is usually the fastest way to diagnose a broken page or failed script.

## Accessing Error Logs in Plesk

**1. Go to Websites & Domains**

Log in to Plesk and click **Websites & Domains** in the left sidebar.

**2. Open Logs**

Find your domain and click **Logs**.

**3. Select the Log Type**

Use the dropdown to switch between log types:

* **Error log** — PHP and web server errors for your domain
* **Access log** — all HTTP requests made to your site

**4. Review the Entries**

The most recent entries appear at the bottom. Look for lines marked `[error]` or `PHP Fatal error` for issues affecting your site.

## Enabling PHP Error Logging

If your error log is empty but your site is broken, PHP error logging may be disabled. To enable it:

**1. Go to PHP Settings**

In **Websites & Domains**, find your domain and click **PHP Settings**.

**2. Enable Error Logging**

Set `log_errors` to **On** and ensure `error_log` points to a writable path. Leave the default path unless you have a specific reason to change it.

**3. Save**

Click **OK** and reproduce the error on your site. Check the log again.

> [!NOTE]
>
> For WordPress sites, errors may also be logged to `wp-content/debug.log` if `WP_DEBUG_LOG` is enabled in `wp-config.php`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.