enable-writelogs

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.

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#

virtualmin enable-writelogs --domain name | --all-domains

Source: https://www.virtualmin.com/docs/development/api-programs/enable-writelogs/

  • virtualmin, apache, domain, log, logs, command line, script, enable, writelogs
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...