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:
![Disable access_log and stop logging on CentOS how to](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiHR7hwxKv8RNJH4VR0a32BA4dXK5VmKjRgqhWkSTHViccGqtNbCGQ2rllMSyrxrdtPwRC6q6olMwaM9ZPZck5jCYNrdvnnHpF82jz0kzlm-SOmmp1d4wh85NuNRHNyN5eWTodejPwXjw/s72-c/prineville-servers-1000.jpg)
No comments
No Backlinks please, Comments are under moderation !