Posted 2011-06-28 13:24 by Joe
enable-writelogs.pl
Enable logging via program
By default,
Virtualmin configures Apache to log to files in each virtual server's home directory,
under the logs sub-directory.
However,
if the domain owner deletes that directory,
Apache will be unable to log and will fail to start!
To avoid this,
Virtualmin can turn on logging via a wrapper script which ignores this problem,
which contains the damage.
The only cost is a little more memory used by the wrapper programs.
The domains that it operates on are specified either using the --domain flag (which can appear multiple times),
or --all-domains to turn off logging via script for all of them.
Command Line Help
Enables logging via program for one or more domains specified on the command line. virtualmin enable-writelogs --domain name | --all-domains
