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?
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.
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.