i have a little issue with the domlogs folder.
I should empty this files but i don't know if it is possible to do without reboot Apache.
a) how can i setup logrotate to rotate domlogs?
And if it is possible:
b) how can i setup logrotate to rotate domlogs without restart apache?
I have already setup whm-> tweak settings to delete old domain's access logs after stats run and the whm is setup to generate statistics every 20 hours.
But every day the site is slowly because the domlogs are too big.
Can anyone help me?
thank for the reply,
it is equivalent to command:touch. Right?
and the file is not deleted but empty and so no restart is required for Apache.
It is work fine
But what if i do not want every day login into ssh and i want to automatize the workout?
What is your method?
Thank for the reply.
I have tried to create a crontab but i don't know if i should insert the path to logrotate.conf or i should insert the path to logrotate.d.
What is the just step to have crontab working?