Introduction
Apache log levels control the amount of information written to the Apache error logs. When troubleshooting website or server-related issues, increasing the log level can provide more detailed information about the cause of an error. This guide explains how to modify the Apache LogLevel setting through WHM.
Prerequisites
- Access to WHM
- Administrative privileges on the server
- Apache service running on the server
Implementation
Step 1
Log in to WHM.
Step 2
Navigate to:
Service Configuration → Apache Configuration → Global Configuration
Step 3
Locate the LogLevel option and change it from its current value to the desired level.
Step 4
Scroll to the bottom of the page and click the blue Save button.
Step 5
Click Rebuild Configuration and Restart Apache to apply the changes.
Step 6
Reproduce the issue again and review the Apache error logs for more detailed information.
For example, you may encounter an error similar to the following:
[client IP.AD.DR.ES] [host website_url.tld] In order to get more info about the fail reason, try to change LogLevel to Info in httpd.conf and restart Apache
After increasing the log level, Apache will generate more detailed log entries that can help identify the root cause of the issue.
Conclusion
Changing the Apache LogLevel through WHM allows you to collect more detailed diagnostic information, making it easier to troubleshoot website and server-related errors.