Symptoms
-
Apache service fails to start or the websites fail to load with:
502 Bad Gateway
-
The following error messages are logged in
/var/log/httpd/error_log
:AH03262: mod_watchdog is required
AH00020: Configuration Failed, exiting
Cause
Module mod_watchdog
is disabled on the server, by required by Apache.
Resolution
-
Go to Tools & Setings > Apache Web Server.
-
Enable the watchdog module:
-
Click OK to apply the changes.
-
Connect the Plesk server via SSH.
-
Open /etc/httpd/conf.modules.d/00-base.conf in a text editor.In this example, we are using the vi editor:
# vi /etc/httpd/conf.modules.d/00-base.conf
- Find the line with watchdog_module and uncomment it:
Before;LoadModule watchdog_module modules/mod_watchdog.so
After:
LoadModule watchdog_module modules/mod_watchdog.so
-
Save the changes and close the file.
-
Restart the Apache service:
# service httpd restart