Enabling error log

Error logs are disabled by default because they take up valuable server resources and are typically unused by most customers. If you need error logs enabled to debug something, do the following in Virtualmin

  1. Sign in to Virtualmin (see Account logins and important URLs).
  2. Click Services in the left-hand navigation, then click Configure Website.
  3. Under Virtual Server Options, click Log Files.
  4. For Error log to, select File.
  5. In the field adjacent to File, enter a full path to the error log of your choice, e.g. /users/home/username/logs/error_log or /users/home/username/domains/domain.com/logs/error_log - replacing username and domain.com with the respective values.
  6. Under Error log level, select the logging level you wish to use. You should not use levels lower than ‘error’, as those hardly ever gain any useful information.
  7. Click Save.
  8. Click Apply Changes on the top right of the page. This will make Apache pick up the change.

Once you’ve finished debugging/troubleshooting, please turn error logging off by changing the Error log to field back to Default. Left unchecked, your error logs can grow quite quickly and will use up space in your account, and also use up system resources unnecessarily.

See also