Disable access_log and stop logging on CentOS how to
Welcome to another tutorial, this time it's a CentOS/Linux web-server tips, and we will learn how to disable and stop logging data to the access_log file on your VPS server or dedicated server.
- First delete the access_log.log file which is located at this path: "/etc/httpd/logs/" on your server.
- Now to stop httpd apache from writing data to that file again, just open the config file located on "/etc/httpd/conf/httpd.conf".
- Now that the you open the httpd.conf using any editor, search for this line "CustomLog logs/access_log" and comment it to become like this "#CustomLog logs/access_log combined".
- Now save the file and restart httpd service.
If you like this article, please share it on facebook, tweet it and +1 it to spread it :) !
Disable access_log and stop logging on CentOS how to
Reviewed by Mhr
on
23:39
Rating:
No comments
No Backlinks please, Comments are under moderation !