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
Open File Manager or connect via FTP
Edit the file configuration.php
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 )Save the file.
Enable Error Reporting from Admin Panel
Log in to the Joomla Administrator
Go to System > Global Configuration
Open the Server tab.
Set Error Reporting to Maximum
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
