> ## 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

<Steps>
  <Step title="Go to Websites & Domains">
    Log in to Plesk and click **Websites & Domains** in the left sidebar.
  </Step>

  <Step title="Open Logs">
    Find your domain and click **Logs**.
  </Step>

  <Step title="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
  </Step>

  <Step title="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.
  </Step>
</Steps>

## Enabling PHP Error Logging

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

<Steps>
  <Step title="Go to PHP Settings">
    In **Websites & Domains**, find your domain and click **PHP Settings**.
  </Step>

  <Step title="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.
  </Step>

  <Step title="Save">
    Click **OK** and reproduce the error on your site. Check the log again.
  </Step>
</Steps>

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