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:
- Log into your Plesk control panel using your user name and password.
- Click on the domain name for which you wish to set log file rotation.
- Click on the Log Manager button.
- Click on the Log Rotation button.
- 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.
- 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.
- Select the log rotation period to be By Size or By Time.
- 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.
- Enter the number of additional log files to keep.
- Check the box next to Compress Log Files to save disk space.
- 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.