I need to disable the ‘access_log’ that generates Virtualmin in ‘/var/log/virtualmin/’ because I use Google Analytics. I commented the lines that have ‘access_log’ from the crontab, for example:
If you don’t wish to use Webalizer any longer, you can go into Edit Virtual Server -> Enabled Features, and on there you can disable the “Webalizer reporting” feature.
All the above does is disable Webalizer’s use of those logs. It doesn’t disable the logging itself.
I wouldn’t really recommend disabling the logging as a whole… but if you really want to do that, you’d need to edit the Apache config to do so – you could edit the sections for the Virtual Hosts in question, and then remove the part that defines the access logging.
But Virtualmin doesn’t create the log files, Apache does.
And if Apache is still creating the log files, that means Apache is still configured to perform logging.
To perform what you’re trying to do, which I don’t recommend, you’d have to remove the CustomLog entry for each of your VirtualHosts, not just the main one in the apache2.conf file.
If you still see data in it, then it sounds like it’s not completely removed from the Apache config.
If it’s blank, that probably just the log rotation at work.
There may not be a simple way to prevent the log rotation process from creating a blank file.
You’d need to manually remove it from the log rotation config files each time you create a domain, but Virtualmin is likely to complain about that and generate errors. Sorry, but the setup really isn’t designed to be done without logging…
Sorry for dropping in on your thread but why do you want/need to disable the access log?
I have both Google Analytics and Webalizer/access log running at the same time on several virtual servers with out any problems. Is there some problem you are having?