Home > Hosting, Linux, Networking > Turn off/disable Apache Log files – CustomLog, ErrorLog directives

Turn off/disable Apache Log files – CustomLog, ErrorLog directives

Edit httpd.conf

replace:

CustomLog /var/log/httpd/access_log combined
ErrorLog /var/log/httpd/error_log

with

CustomLog /dev/null combined
ErrorLog /dev/null

Restart httpd with command:

./apachectl restart

(don’t do service httpd restart, use apachectl )

  1. No comments yet.
  1. No trackbacks yet.
GoCache - ByREV-Cache v1.0 - live served in : 0.137777 sec (gzip)