Method 1: Via FTP:
- Log into your server via FTP, use SFTP protocol or port 22 (See: How to Use FTP)
- Using the FTP client, navigate to /var/www/vhosts/domain.com/logs where domain.com is your primary domain name.
- Most FTP clients support the ability to right click the file on the remote machine, and view it locally by clicking Edit.
- If this is not the case, download the file to your local machine, browse to the location of the log, and open it with a text editor.
Method 2: Via SSH
- Log into your server via SSH (See: How to Log into a Linux Server Using SSH)
- Type the following command, where domain.com is the primary domain name for your web site:
- Type ls and hit enter, to list the log files.
- Select the log you wish to view, and type the following command, where [log] is the name of the log file:
- This will display the last 10 lines of the log. If you wish to view more lines, run the following command, replacing XX with the number of lines:
tail [log] -n XX
Log File Types
access_log: access_log is equivalent to IIS logs in Windows. Each web request is tracked here since the last log rotation occurred.
access_log.processed: This log is the same as the access_log, but keeps track of everything before the current log rotation.
access_ssl_log: Similar to access_log, this is a log of all requests over HTTPS since the last log rotation.
access_ssl_log.processed: This log is the same as the access_ssl_log, but is everything from before the current log rotation.
xferlog_regular: This is a log of all FTP transfers for the site.
xferlog_regular.processed: This log is the same as xferlog_regular, but is everything from before the current log rotation.
error_log: This is a log of all web errors, such as PHP errors.