I've been reading about disabling the logging of the apache server, which is crucial for me as I'm running huge tests on it, and it fills the disk.
I've tried changing http.conf and directing stuff to /dev/null, but none of it worked, as most of it was the Error logging.
Any idea anyone?
Thanks
If in use, deleting the log will make apache reload to re-open the just deleted file.
What are Apache Access Logs? As mentioned above, the Apache access log is one of several log files produced by an Apache HTTP server. This particular log file is responsible for recording data for all requests processed by the Apache server.
By default, you can find the Apache access log file at the following path: /var/log/apache/access. log. /var/log/apache2/access.
Just comment the areas where logging was set.
On,
httpd.conf virtual hosts configurations (virtual.conf, domain.conf etc)
For something like
CustomLog logs/access_log common ErrorLog logs/error_log
Just do,
#CustomLog logs/access_log common #ErrorLog logs/error_log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With