Hard Hat Hosting - "Virtual Dedicated Server" web hosting

Why is my disk space increasing, even when I do not add files?

Original URL: http://help.hardhathosting.com/question.php/113

There are 2 main places where your disk space could be growing.

  1. You are not deleting your compressed log files from /www/logs. The error_log keeps a list of all errors from the web site. The access_log keeps all of the information about your visitors. Every so often, your server takes the current access log and compresses it into a .gz file. You should download these files and delete them periodically. After you delete either of these files you must restart your VDS in the control panel or run the SSH command:
    /etc/rc.d/init.d/apachectl restart
    NOTE: If you have Webalizer or Urchin installed, be careful deleting log files. These programs depend on the NON-compressed log files for their reports.
  2. You are running MySQL and you are not deleting the MySQL log. You can see the fix for that here [Link: /question.php/39].

Back to original article