Control Web Panel

WebPanel => Installation => Topic started by: asrof_id on January 27, 2021, 08:26:44 AM

Title: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: asrof_id on January 27, 2021, 08:26:44 AM
Hello,

I have giant log files in "/usr/local/apache/logs",
access_log - 20 GB
modsec_audit.log - 8,5 GB
error_log - 3 GB
suphp_log - 3 GB

Can I delete them?

Thank you very much.
Title: Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: Sandeep on January 27, 2021, 05:43:19 PM
yes you can delete it.
Title: Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: cinique on January 27, 2021, 06:59:25 PM
yes you can delete it.
Not that helpful.
As mentioned in another thread, CWP provide a GUI to help you utilise logrotate.

One can lead a horse to water..
Title: Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: Sandeep on January 28, 2021, 11:45:16 AM
yes you can delete it.
Not that helpful.
As mentioned in another thread, CWP provide a GUI to help you utilise logrotate.

One can lead a horse to water..
so your horse can lead to sea to become a sea horse. I just answered him what he asked.
Title: Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: Igor S. on February 01, 2021, 09:43:48 AM
Hey, if you will delete log files you can lost your working WEB server. Stop it, guys. You must not delete anything you did not create!
Just clean the big logs or configure logrotate. The simplest logrotate config below:

Code: [Select]
# Logrotate CWP
/usr/local/apache/domlogs/*.log {
        compress
        delaycompress
        daily
        missingok
}
/usr/local/apache/logs/*.log {
        compress
        delaycompress
        daily
        missingok
}
Title: Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: asrof_id on February 19, 2021, 07:41:30 AM
Thank you very much,
Thanks God, I haven't delete the file.
Do you have a complete tutorial for this LOGROTATE?

Thank you very much Igor S.,


Hey, if you will delete log files you can lost your working WEB server. Stop it, guys. You must not delete anything you did not create!
Just clean the big logs or configure logrotate. The simplest logrotate config below:

Code: [Select]
# Logrotate CWP
/usr/local/apache/domlogs/*.log {
        compress
        delaycompress
        daily
        missingok
}
/usr/local/apache/logs/*.log {
        compress
        delaycompress
        daily
        missingok
}
Title: Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: Sandeep on February 20, 2021, 02:45:07 AM
you can try this tutorial
https://www.mysterydata.com/how-to-clean-all-log-files-in-cwp-control-webpanel-to-gain-disk-space/
Title: Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
Post by: asrof_id on February 20, 2021, 03:27:12 AM
Thank you very much Sandeep.
God bless you,
Hoped you are always healthy and happy!

you can try this tutorial
https://www.mysterydata.com/how-to-clean-all-log-files-in-cwp-control-webpanel-to-gain-disk-space/