To view the error log in the cPanel hosting control panel, go to "Metrics → Errors ".
- This section displays the last 300 Apache web server errors for your sites.
PHP script execution errors are contained in the text file error_log which is located in the same directory as the PHP script that failed. You can view this file through the file manager in the control panel.