Support / KnowledgeBase

 
Search the KnowledgeBase Search

Where are the access_log and error_log files for my server?

  • Applies to: (dv) 4.0, DV, Grid

  • Difficulty: Easy

  • Time needed: 10 minutes

  • Tools needed: AccountCenter access, Plesk administrator access

 
  • Applies to: Grid
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: AccountCenter access
  • Applies to: DV
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Plesk administrator access
  • Applies to: DV 4.0
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Plesk administrator access

Overview

Your log files are accessible from the 'logs' directory of your Grid hosting service. The system path for this is /home/00000/logs/, which can be accessed through the File Manager, FTP, or SSH. You can also view them from within your Grid Control Panel. Be sure to replace 00000 with your Grid site number.

Enabling Error Logs

  1. Log into your AccountCenter and select the Admin button for your Grid from the Overview page.
    732_admin
  2. Select Report Settings & Logs section from the Stats & Reports menu. You will be taken to the Reports & Log Settings page.

    Screen_Shot_2014_11_25_at_11.56.50_AM

  3. To enable error logs, select the Enabled radial button next to Server Error Logs.
    Screen_Shot_2014_11_25_at_11.41.26_AM
  4. To enable access logs, tweak the time frame on the Raw Access Logs drop-down menu. You can also disable access logs by choosing "Do not keep raw log files."
    Screen_Shot_2014_11_25_at_11.41.32_AM
  5. Click Save Settings to make your changes.
    Screen_Shot_2014_11_25_at_11.57.04_AM
  6. Viewing the logs

    The log data is best viewed in a plain text editor. Example text from an access_log:

    
    123.45.678.90 - - [11/Oct/2010:02:58:13 -0700] "GET /s00000.gridserver.com/ HTTP/1.0" 200 2869 "http://s00000.gridserver.com/" "Malware-Scanner/0.5 (+security@mediatemple.net)"
    

Overview

All connections to the Web server and requests for files that were not found on the server are registered in log files. These log files are analyzed by the statistical utilities running on the server, which then present graphical reports on demand. You may want to download these log files to your computer for processing by third-party statistical utilities, or view their contents for web server debugging purposes.

DV with Plesk Instructions

  1. Log into the Plesk Control Panel for your domain.
  2. NOTE:

    If you log into Plesk with the admin user, you will be in the Server Administration Panel by default. To get to the Control Panel, click on Domains, then on the Control Panel link next to your domain.

  3. From the Home page, click on Websites & Domains.


  4. Expand the pane for your domain to show the extended options.
    732_Expand_Plesk_Panel_11.5
  5. Select Logs.
  6. Click on the log you'd like to view. This will open in a pop-up window or new tab, depending on your browser preferences. Be sure your browser's pop-up blocker is disabled for your Plesk Control Panel. You may also download the log file to your local computer by clicking the download link to the right of the log.

Viewing the logs

The log data is best viewed in a plain text editor. Example text from an error_log:


[Fri Aug 19 15:06:01 2011] [error] [client 119.63.196.90] File does not exist: /var/www/vhosts/example.com/robots.txt

DV with cPanel Instructions

  1. Log into the cPanel for your domain.
  2. From the Home page, find the Logs panel.

    cpanel_logs

  3. From here, you can select any number of ways to view your access logs. Awstats and Webalizer are the most common graphical views, but you also have the ability of choosing a different log program or downloading the raw access logs to view in any log reader. You may also view your last 300 error logs by clicking on Error Log.

Log locations for the DV with cPanel

The following are the paths to common log files.

Domain Access Log 


/usr/local/cpanel/logs/access_log

Domain Error Log 


/usr/local/cpanel/logs/error_log

Overview

All connections to the Web server and requests for files that were not found on the server are registered in log files. These log files are analyzed by the statistical utilities running on the server, which then present graphical reports on demand. You may want to download these log files to your computer for processing by third-party statistical utilities, or view their contents for web server debugging purposes.

Instructions

  1. Log into the Plesk Control Panel for your domain.
  2. NOTE:

    If you log into Plesk with the admin user, you will be in the Server Administration Panel by default. To get to the Control Panel, click on Domains, then on the Control Panel link next to your domain.

  3. From the Home page, click on Websites & Domains.


  4. Expand the pane for your domain to show the extended options.
    732_Expand_Plesk_Panel_11.5
  5. Select Logs.
  6. Click on the log you'd like to view. This will open in a pop-up window or new tab, depending on your browser preferences. Be sure your browser's pop-up blocker is disabled for your Plesk Control Panel. You may also download the log file to your local computer by clicking the download link to the right of the log.

Viewing the logs

The log data is best viewed in a plain text editor. Example text from an error_log:


[Fri Aug 19 15:06:01 2011] [error] [client 119.63.196.90] File does not exist: /var/www/vhosts/example.com/robots.txt

Additional Resources

 

Continue