Viewing the WHE log files

Body

Summary

You can access standard Apache access and error logs for your site both via command line or via the web interface.

Environment

LSA cPanel environment.

Directions

Error Logs

Web GUI

To view your error logs via the web interface, log into your account and look for the “Metrics” section on your page.

WHE Metrics.png

Clicking Errors here will bring you to a page that shows the last 300 Error log messages related to your website in reverse order.

Command Line

If you have shell access enabled you can also parse through the logs via the command line. On cPanel servers all Apache errors, regardless of site, are logged in /usr/local/apache/logs/error_log. You may want to limit your search to just relevent errors to your site by using grep.

Example: Using tail to limit the log to the last 1000 lines, search for just errors with your username in it: tail -n1000 /usr/local/apache/logs/error_log | grep username. Replace username with your cPanel username.

Access Logs

Web GUI

To view your access logs via the web interface, login to your account and look for the “Metrics” section on your page.

WHE Metrics.png

Clicking Raw Access here will bring you to a page that allows you to download your access logs in .gz format. If you are on Windows you will need 7zip or some other compression software that can handle .gz files. You will have access to download both the current logs and also an archive of the logs going back a few days.

Command Line

Access logs for http content is located in /usr/local/apache/domlogs/name.of.your.site, and access logs for https content is located in /usr/local/apache/domlogs/name.of.your.site-ssl_log.

Details

Details

Article ID: 1615
Created
Wed 5/27/20 8:26 AM
Modified
Wed 10/2/24 8:48 AM