SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com KnowledgeBase .: Shared Web Hosting on Plesk Servers .: Can access logs be disabled? (Log rotation explained.)

Can access logs be disabled? (Log rotation explained.)

The Apache access logs cannot be disabled on Plesk-based hosting account. Log files can be rotated to reduce the disk space used.

The Plesk control panel updates the amount of disk space used by a domain once daily. You can delete any log file with "processed" as part of its name in the Log Manager portion of the control panel. You cannot delete the access_log or error_log files.

However, you can reduce the amount of disk space being used in your log files by turning on log rotation in your control panel. Log file rotation allows you to place older log file data in separate files and will eventually delete the log file information when it becomes old enough. You can also compress log files while rotating them to save disk space. To set up log file rotation:

  1. Log into your Plesk control panel using your user name and password.
  2. Click on the domain name for which you wish to set log file rotation.
  3. Click on the Log Manager button.
  4. Click on the Log Rotation button.
  5. If you are using Plesk 5: If there is a red X to the left of Log rotation status click on the On/Off button. Go to Step 7.
  6. If you are using Plesk 7.5 Reloaded: If you see an "Enable" button log rotation is disabled. Click on the "Enable" button to turn on log rotation. The "Enable" button will turn into a "Disable" button.
  7. Select the log rotation period to be By Size or By Time.
  8. If you selected By Size set the size in KB (remember, 1024 KB = 1 MB). If you selected by time choose the time period from the drop down menu.
  9. Enter the number of additional log files to keep.
  10. Check the box next to Compress Log Files to save disk space.
  11. If you wish the log files to be sent to an email address, enter the email address in the appropriate textbox.

Manually deleting the processed log files will not negatively impact Plesk. These files are a byproduct of creating web statistics and removing them will not remove any web statistics for your site.

To remove the processed log files place a check in the box next to the processed log file you wish to delete, and then click on the Remove Selected button. You will be unable to put a check box next to the log files Plesk needs to keep, the access_log and the error_log.

When you set the number of log files you wish to rotate new files will be created each time you rotate files. For example, if you set your log rotation to "daily" and choose to keep two log files you will create an access_log.1 file from the access_log file on the first day. The second day the access_log.1 will become access_log.2 and a new access_log.1 will be created. On the third day the access_log.2 file will be deleted, the access_log.1 will become access_log.2 and a new access_log.1 will be created.


How helpful was this article to you?

Related Articles

article Where are my Apache HTTP access logs?
Log files are found in the /logs directory for...

  7-21-2005    Views: 6518   
article Can I delete access_log and error_log files from my UPipe account?
You can delete any log file with...

  1-11-2006    Views: 16199   
article Is it possible to run Microsoft Access on my server?
It is not possible to run Microsoft Access...

  7-19-2005    Views: 18905   

User Comments

No comments have been posted.


.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc.
SimplyWebHosting.com - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted