+3 votes
in Web & Google by (56.8k points)

The access_log of Apache web server is taking too much space on the hard drive. Is there anyway to completely disable access_log so that I do not have to clean the access_log to free disk space?

1 Answer

+1 vote
by (349k points)
selected by
 
Best answer

If you can edit file "httpd.conf" of your Apache web server, you can disable access_log.  "httpd.conf" should be present in folder /usr/local/apache/conf/.

1. Open httpd.conf in an editor

2. Search for keyword access_log and comment out the line. e.g.

#CustomLog "logs/access_log" common


...