====== 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 - Sign in to Virtualmin (see [[Logins]]). - Click **Services** in the left-hand navigation, then click **Configure Website**. - Under //Virtual Server Options//, click **Log Files**. - For //Error log to//, select **File**. - 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. - 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. - Click **Save**. - 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 ===== * [[shared:kb:log-rotation]]