Debugging Apache

If you ever find the need to debug Apache and want stop httpd from forking and detaching from the controlling terminal, you can start httpd with the ONE_PROCESS and NO_DETACH options:

$ /usr/sbin/httpd -DONE_PROCESS -DNO_DETACH

Once you are done debugging, you can hit control-c and the process will exit. Giddie up!

This article was posted by Matty on 2005-11-27 20:13:00 -0400 -0400