Skip to main content

How to Enable Error logs - Joomla

Updated over a week ago

This article explains how to enable error reporting and locate logs in Joomla. This applies to Joomla 3.x / 4.x / 5.x.

Prerequisites

  • Access to cPanel

  • Ensure PHP error logging is enabled in cPanel

Completion of the task: 10 minutes
Expertise: beginner

How to do?

Enable Error Reporting from the configuration.php file

  1. Open File Manager or connect via FTP

  2. Edit the file configuration.php

  3. Edit or modify the following lines:
    public $log_path = '/$home_user_path/logs';

    public $error_reporting = 'maximum';
    (Set it to: maximum or for the numeric value -1 )

  4. Save the file.

Enable Error Reporting from Admin Panel

  1. Log in to the Joomla Administrator

  2. Go to System > Global Configuration

  3. Open the Server tab.

  4. Set Error Reporting to Maximum

  5. Click Save & Close

Log File Location

/administrator/logs/error.php

The exact path can be confirmed from the Admin panel in: System > Global Configuration > Server > Path to Log Folder

Did this answer your question?