Common Log File Locations

  • /var/log/messages : General message and system related stuff
  • /var/log/exim_mainlog : Exim Mail logs
  •  /var/log/maillog : Mail server logs
  • /usr/local/apache/logs/error_log : Apache Logs (cPanel)
  •  /var/log/httpd/ : Apache error logs (non Cpanel)
  •  /var/log/auth.log : Authenication logs
  •  /var/log/kern.log : Kernel logs
  •  /var/log/cron.log : Crond logs (cron job)
  •  /var/log/qmail/ : Qmail log directory (more files inside this directory)
  •  /var/log/mysqld.log : MySQL database server log file

 /var/log/secure or /var/log/auth.log : Authentication log


You can view these logs using the cat command. This will output the contents of the log file onto your screen:

$ cat /var/log/messages

You can also use the tailf to "follow" the output as it is appended to the log file:

$ tailf /var/log/message

  • 28 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

Previewing your website before transferring it to your VPS - hosts file

Below is a guide to using the hosts file to preview your site before transferring / before DNS...

Connecting to your Linux server via SSH (Shell Access)

An SSH (Secure Shell) session is a useful means of direct communication with your Virtual Server,...

Text Editor on Linux

In order to edit files on the command line you will have to use a text editor.There are many text...

Start/stop web services - Apache, Postfix, MySQL, etc

You can restart application services via SSH. Below are some examples: [Redhat based...

Installing/updating packages on Debian/Ubuntu

Before you search/install a package please refresh the package list using this command - apt-get...