LiteSpeed logs eating my hard disk

vivek

Well-Known Member
#1
Hello
I dont know why, but litespeed logs are very big in size


File Name $SERVER_ROOT/logs/error.log
Log Level ERROR
Debug Level NONE
Rolling Size (bytes) 10M
Enable stderr Log No



97M error.log.2008_01_29.02
194M error.log.2008_01_29.03
45M error.log.2008_01_29.04
24M error.log.2008_01_29.05
21M error.log.2008_01_29.06
26M error.log.2008_01_29.07
151M error.log.2008_01_29.08
32M error.log.2008_01_29.09
19M error.log.2008_01_29.10
43M error.log.2008_01_29.11
12K error.log.2008_01_29.12
176K error.log.2008_01_29.13
196K error.log.2008_01_29.14
192K error.log.2008_01_29.15
152K error.log.2008_01_29.16
228K error.log.2008_01_29.17
144K error.log.2008_01_29.18
160K error.log.2008_01_29.19
156K error.log.2008_01_29.20
144K error.log.2008_01_29.21
304K error.log.2008_01_29.22
4.0K error.log.2008_01_29.23
4.0K stderr.log
39M stderr.log.2008_01_29
35M stderr.log.2008_01_29.01
81M stderr.log.2008_01_29.02
45M stderr.log.2008_01_29.03
43M stderr.log.2008_01_29.04
51M stderr.log.2008_01_29.05
52M stderr.log.2008_01_29.06
55M stderr.log.2008_01_29.07
64M stderr.log.2008_01_29.08
65M stderr.log.2008_01_29.09
27M stderr.log.2008_01_29.10
51M stderr.log.2008_01_29.11
50M stderr.log.2008_01_29.12
63M stderr.log.2008_01_29.13
56M stderr.log.2008_01_29.14
50M stderr.log.2008_01_29.15
45M stderr.log.2008_01_29.16
50M stderr.log.2008_01_29.17
89M stderr.log.2008_01_29.18
26M stderr.log.2008_01_29.19
58M stderr.log.2008_01_29.20
321M stderr.log.2008_01_29.21


Seems odd. The folder size is around 2 GB and still increasing every second.

Any idea?
 
Last edited:

vivek

Well-Known Member
#3
You can remove those log files.
Aah! That was not a good reply. I know that I can remove it.
But the matter is something different.

I installed LSWS /opt/lsws

and according to server's partition table, the / folder is around 2 GB.

So that , when lsws increases to 2 GB then the whole cPanel stops working , telling that /dev/xxx is 100% full, so for preventing any damange, cpanel will not load.

Thus, every hours I have to ssh and remove the logs.

Anyway I reinstalled lsws to /home/lsws and is still increasing the size.
 

mistwang

LiteSpeed Staff
#4
delete it in a cron job, and you can set log level to ERROR. check the error log, if those are PHP errors, you should fix your php code.
 
Top