- Forums
- Linux Systems
- How To Stop Access Logs In Ispconfig 3 On A Linux Server
this page will show you what you can do stop stop access loging because it uses too much space on your server and takes cpu resources and memory [8880], Last Updated: Sat May 18, 2024
gigo
Wed Dec 31, 1969
1 Comments
611 Visits
do you have ispconfig 3 on your linux server. have you noticed that the logs directory has a bunch of access logs? i think its too much if you have a website that has alot of hits. how do you disable it or stop it?
well, i guess it depends what type of server you have, but if you have a red hat, centos or fedora you can try this.
look and edit this file:
/etc/httpd/conf/sites-available ispconfig.confyou can use this command:
vi /etc/httpd/conf/sites-available ispconfig.conf
look for the line that starts with:
CustomLogit will look like this:
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
so just comment it out. (just put a hash in front of it. hash = # ) so it will look like this:
#CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
then restart your web server:
service httpd restart
done
UPDATE. you can tell you are getting this error because if you look at your error log you will see an entry like this:
mod_fcgid: HTTP request length 136806 (so far) exceeds MaxRequestLen (131072)