NAME

krang_apachectl


SYNOPSIS

   krang_apachectl start
   krang_apachectl stop
   krang_apachectl restart
   krang_apachectl offline


DESCRIPTION

This script controls the Krang Apache server. The usage of the script is the same as the normal apache ``apachectl'' script but only ``start'', ``stop'' and ``restart'' are supported. Also, ``restart'' performs a hard stop and start since a SIGHUP isn't enough for mod_perl. We've also added a command ``offline'' that stops the normal Krang Apache and restarts one to show an offline page.

Usage information can be obtained by running the script with no arguments.

FOR DEVELOPERS

The environment variable CGI_MODE may be set to a true value (e.g., '1'), which will cause all CGI applications to be run as true CGIs, via mod_cgi. If this environment variable is not present, or is false, then all CGI applications will run via Apache::Registry.

CGI_MODE is only useful for debugging during development. In production is it inadvisable to invoke this mode.