As with any control panel it’s important to be able to view your access logs and errors logs. This helps ensure that everything is functioning correctly with your website or server. Thankfully, Virtualmin lets you view both the access logs and error logs associated with any domain on your server. This article will show you how. It is assumed that you have Virtualmin installed, and are able to login successfully.
Where Are The Logs Located?
Normally, on traditional systems, log files for most applications would be stored in the /var/log folder on your server. This can vary of course on application and operating system that you are using. If you are using Apache as your webserver, which is a justified assumption being Apache is quite popular for servers. The error log can be traced back to the /var/log/apache2/error_log on Debian based servers and the error log file can be found at /var/log/httpd/error_log on RHEL based servers (CentOS, Fedora, etc.) The access log would be in the same location, exception with the name of access_log. /var/log/apache2/access_log and /var/log/httpd/access_log respectively.
How Do I View The Logs In Virtualmin?
- Log into your Virtualmin Control Panel
- Under the Virtualmin section, select the domain from the dropdown menu that contains the logs you’d like to view
- From the available options below, select the Logs and Reports section
- Here you are able to view both the access logs and error logs for your Apache web-server separated into two options. To view your Apache Access Logs, click on the respective button. Likewise with the Apache Error Logs.