Viewing Error Logs

Error logs help troubleshoot website issues by showing PHP errors, warnings, and notices.

Access Error Logs

  1. Log into cPanel
  2. Go to Metrics > Errors
  3. Select domain from dropdown (if you have multiple)
  4. View recent errors

Understanding Error Messages

Common Errors

  • 404 Not Found: File or page doesn't exist
  • 500 Internal Server Error: Server configuration issue, often .htaccess or PHP error
  • 403 Forbidden: Permission denied, check file permissions
  • PHP Parse Error: Syntax error in PHP code
  • Fatal Error: Critical PHP error stopping script execution

Viewing Detailed Logs via File Manager

  1. Open File Manager
  2. Navigate to /logs or /public_html
  3. Look for error_log file
  4. Right-click and View or Edit

Downloading Logs

From Metrics > Errors page, click Download to save error log to your computer for detailed analysis.

Clearing Error Logs

To delete old errors and start fresh:

  1. Go to File Manager
  2. Find error_log file
  3. Delete the file
  4. New error_log will be created automatically when errors occur

Troubleshooting Tips

  • Check timestamps to identify when issues started
  • Look for patterns in error messages
  • Google specific error messages for solutions
  • Contact support if you need help interpreting logs
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution