How to reduce the size of suexec_log?

Flyer

Member
Jun 15, 2007
19
0
51
Hi,

The log file /var/log/apache2/suexec_log grows at a rate of about 13,000 per day with entries like this:

[2021-03-07 13:44:52]: uid: (1004/user-name) gid: (1005/group-name) cmd: ea-php74

They are not telling me anything useful, so is it possible to prevent this?

The server is running cPanel v94.0.4.

Thanks.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,951
921
313
cPanel Access Level
Root Administrator
Hey there! You can't remove that log file as it will continue to be recreated, but you could ensure this is being rotated properly by adjusting the values in WHM >> Apache Configuration >> Log Rotation in conjunction with the WHM >> Tweak Settings >> "Log rotation size threshold" value. That will ensure the log is rotated frequently.