Skip to content
Host4u Limited

Website access and error logs

Support Portal  »  Knowledgebase  »  Viewing Article
There was a problem loading the comments.
  Print

Your hosting account keeps logs of who visited your website and what went wrong. They are useful for finding why a page fails, and for spotting bots and abuse.

Access logs (Raw Access)

An access log lists every request to your website: the visitor's IP address, the time, the page and the result.

  1. In cPanel, open Raw Access (in the Metrics section).
  2. Under Download Current Raw Access Logs you will see each domain, when its log was last updated and its size. Archives for earlier months are listed under Archived Raw Logs, for example yourdomain.com-Nov-2026.gz. The ones with ssl_log in the name are visits over HTTPS.
  3. Click one to download it, then unzip it. It is a plain text file.

Statistics are processed about every 24 hours.

Keeping your logs

Under Configure Logs on the same page you can choose:

  • Archive log files in your home directory after the statistics are processed. The archive is kept in the logs folder in your home directory.
  • Remove the previous month's archived logs from your home directory at the end of the month.
  • A custom retention period, in days, for the archives. By default they are kept until you delete them.

Click Save after you change them. If you need a log for a longer period, download it and keep your own copy.

Error logs

  1. In cPanel, open Errors (in the Metrics section).
  2. Latest web server error log messages shows the most recent errors from your website, such as a missing file or a PHP error.
  3. Latest suEXEC event log messages shows problems with running scripts, such as wrong file permissions. See File and folder permissions.

When you ask us for help with an error, copy the lines from the time it happened into your ticket.

Visitor statistics

The Metrics section also has tools that turn the logs into charts and tables:

  • Awstats and Webalizer show traffic statistics. Click View next to a domain.
  • Visitors lists recent visits: the IP address, the page, the time, the referring address and the browser. If the log has been rotated it shows fewer entries.

Related

Website errors explained (403, 404, 500, 503), Resource usage and limits.


Share via
Did you find this article useful?  

Related Articles


Self-Hosted Help Desk Software by SupportPal