Results 1 to 4 of 4
Thread: Clearing logs and tmp (cPanel)
-
08-24-2007, 11:13 PM #1Newbie
- Join Date
- Aug 2007
- Posts
- 9
Clearing logs and tmp (cPanel)
I have a cPanel website, its /tmp and /logs directories have taken large amount of disk space now. What is the best way to clear the /tmp and /logs directory safely without causing any issues ? Analog, AWstats and Webalizer are enabled for this website. I guess most of the files belong to them. So is there any way to clear them without causing those statistics softwares to have any issues ? I have root access also to this server.
Last edited by sirius; 08-25-2007 at 08:52 AM.
-
08-24-2007, 11:16 PM #2Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
You can safely delete the stats related files from the /tmp directory. Also use the following command to remove the session files
rm -rf sess_*David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
08-25-2007, 12:04 AM #3Web Hosting Guru
- Join Date
- Feb 2006
- Location
- Pakistan/India/USA
- Posts
- 322
Re:
Dear WiMAX,
I assume you are talking about user account. If you want to delete files from /tmp folder be very careful as they contain AwStats and Webalizer information and statistics.
Best Regards.Tom F - VCA-WM, VCA-Cloud, VCA-DCV, CISSO, CPTE, OSCP, RHCE, RHCT
Maxim Support - Hosting Solutions & Server Management
Email : tom@maximsupport.com
Web : http://www.maximsupport.com
-
08-25-2007, 12:10 AM #4Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Oh, if you are saying about single account as Tom says, you should not remove stats directories. You can get into the directory and see if any cache files are taking much disk space and remove it safely.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android