Apache Debug Mode

When you are facing some errors issues with Apache. Its always better to start the Apache in debug mode rather than starting and restarting the Apache service.

You can change the LogLevel of the Apache temporarily, without modifying the LogLevel directive in the httpd.conf as shown below using option -e. In this example, the LogLevel is set to debug.

httpd -k start -e debug

You can pass these values with -e option:

debug
info
notice
warn
error
crit
alert
emerg

Below is the screenshot of my machine, here I had intentionally changed the Listen directive to Liten and run the command.

 

networknuts-httpd-debugmode

networknuts-httpd-debugmode

Advertisements