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.

Access & Enabling

To find this feature in the Grid Control Panel, we've created this short walk-through.

1. Log into your AccountCenter and navigate to the Admin section for your Grid. You will see the Report Settings & Logs section on the page. Navigate to that section:

1.png

2. On this page, you can fine-tune your preferences on how you would like your log files treated. Please note that if you need to check error logs, they must be first enabled. Error logs are disabled by default and must be turned on from within this section before they can be viewed:

2.png

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