Apache Disk space full

by vinoth kumar   Last Updated February 05, 2018 13:00 PM

I am using centos linux server, Apache uses 100% disk space. Out of 10GB, cpanel is using 8GB space. Can anyone guide me what are all the files we can remove from the server to provide some space on the disk?



Answers 2


cpanel's apache default error and access logs are under /usr/local/apache/logs/. You can run command du -hs /usr/local/apache/logs/ to see that folder size. And by default logs under /usr/local/apache/logs/ are not rotated.

Edit: have you separate /tmp/ partition? some users can create large temporary files under /tmp/ (imagemagick for example) and not remove them.

Guntis
Guntis
April 16, 2013 10:21 AM

If you have a lot of static text (=compressable) files and deleting files is not enough then you may gain space by putting those files in an squashfs image (which is compressed and read-only) and linking them from their original path.

Hauke Laging
Hauke Laging
April 16, 2013 10:38 AM

Related Questions



Resizing Centos Partitions

Updated July 10, 2015 13:00 PM

CentOS Increase / Partition Size

Updated May 25, 2017 14:00 PM