cPanel provides two types of logs: error logs (PHP and server errors) and access logs (every request to your site). These are essential for debugging errors and investigating unexpected behaviour.
View the error log (last 300 errors)
- Log in at https://tpc-hosting.com/login and open cPanel.
- Under Metrics, click Errors.
- The page shows the last 300 errors logged for all domains on your account.
- Each entry includes: date and time, error type and message, file path, and line number.
View the full error_log file in File Manager
The error log displayed in the Metrics section is truncated. For the full log:
- Open File Manager and navigate to public_html (or the document root of your domain).
- Look for a file named error_log. If it is hidden, enable Show Hidden Files from the Settings menu.
- Right-click the file and select View or Edit.
Each WordPress installation also generates its own debug.log file in wp-content/ when debug mode is enabled.
Download raw access logs
- Under Metrics, click Raw Access.
- Select the domain.
- Click the link to download the compressed log file for the current month.
- To keep monthly archives automatically, check Archive Logs at the bottom of the Raw Access page and click Save.
Raw access logs are in standard Combined Log Format and can be imported into any log analysis tool.
Common error log entries explained
- PHP Fatal error — a PHP script crashed. The file and line number tell you exactly where.
- PHP Warning / Notice — non-fatal issues that may indicate deprecated functions or missing variables.
- File does not exist — a visitor or bot requested a file that is not on the server. Common for missing favicon.ico or old URLs.
- Permission denied — the web server cannot read a file. Check file permissions (should be 644 for files, 755 for directories).