Linux – How to disable LOGS

hostinglinuxPHP

My disk space usage is increasing very fast because of the logs. Everyday I get ~1.5 GB log file. How can I disable that?

Best Answer

Disabling logs is never a good idea. You can use programs like logrotate to rotate your log files if the space is the issue. If you insist on not keeping log files. Please direct your program's log directive to /dev/null