Author Topic: large logs file  (Read 4188 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
large logs file
« on: September 22, 2020, 12:15:20 PM »
Hello , anyone to know how I can reduce storage 2 logs file on picture ?
Thank you


Re: large logs file
« Reply #1 on: September 22, 2020, 02:09:48 PM »
You learn how to manage a server!  ::)
Clue: logrotate

Offline
*****
Re: large logs file
« Reply #2 on: September 27, 2020, 09:35:34 AM »
You can clean the log with two commands below:
Code: [Select]
echo -n '' > /usr/local/apache/logs/access_log
echo -n '' > /usr/local/apache/logs/suphp_log

Or (the best way) to configure logrotate as @cynique said before
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services