How to View Web Server Errors and Analyze Traffic with AWStats

50 views
Short answer: Launch cPanel 'Errors' to inspect real-time web server diagnostic logs, or open 'AWStats' to review comprehensive analytics on visitors, search engines, and bandwidth consumption.

Master cPanel traffic metrics, inspect raw Apache/LiteSpeed error logs, and track bots, bandwidth, and visitor spikes using AWStats.

Quick reference

Error Logs Tool cPanel > Metrics > Errors (shows last 300 entries)
Web Analytics cPanel > Metrics > AWStats
Raw Logs cPanel > Metrics > Raw Access

Steps

  1. Inspect Recent Server Errors:
    • Navigate to Metrics > Errors.
    • cPanel displays the last 300 entries from the web server log, including missing files (404), forbidden permissions (403), and fatal PHP script errors.
  2. Launch AWStats Analytics:
    • Navigate to Metrics > AWStats.
    • Click View next to your domain name (ensure SSL/HTTPS is selected).
  3. Interpret Key AWStats Sections:
    • Monthly / Daily Summary: Shows unique visitors, number of visits, page views, and bandwidth consumed.
    • Robots / Spiders Visitors: Identifies automated crawlers (Googlebot, Bingbot, Semrush, Ahrefs, scrapers).
    • HTTP Error Codes: Displays 404 broken links and 500 internal errors detected during page requests.
  4. Download Raw Access Logs: Under Metrics > Raw Access, click your domain to download uncompressed server access logs in .gz format for auditing with external tools.

Live Error Log Monitoring via Terminal

# Watch the last 20 lines of the error log live
tail -n 20 -f ~/public_html/error_log

# Show only fatal errors from the log
grep "Fatal error" ~/public_html/error_log

Troubleshooting and tips

  • AWStats Shows No Data: Server stats update periodically (every 24 hours). Click Update now at the top of the AWStats dashboard to force an immediate calculation.
  • High Bandwidth Alert: Check the File type breakdown in AWStats. If large .mp4 or uncompressed .png files are consuming gigabytes of bandwidth, consider offloading media to an object storage CDN.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket