httpd_ctl - An apache httpd control script that supports Template Toolkit pre-processing
httpd_ctl [--all|-a] [--batch|-b] [--conf_file|-f httpd.conf file] [--debug|-d] [--help|-h] [--man|-m] [--template|-t] (start|stop|coldrestart|restart|graceful|configtest)+
An apache httpd control script that supports Template Toolkit pre-processing
If file extension is .tt automatically implies --template
prints debug messages
prints out usage information and exits
A quoted string specifying any additional options to pass through to the httpd.
produces man page
Requires the --conf_file file to be processed by Template Toolkit. The processed file will be placed in the same directory .
This allows you to do things like environment variable substitution:
[% USE env = EnvHash %] [% env.MY_LOG_DIR %]
It is that simple!
But, remember you can do much more powerful things with Template Toolkit, and use variables in control structures such as if, for, foreach and so on. See http://www.template-toolkit.org/ to read about Template Toolkit in full.
start httpd
stop httpd
stop the httpd and then start it
Restart httpd if running by sending a SIGHUP or start if not running
Do a graceful restart by sending a SIGUSR1 or start if not running
Do a configuration syntax test and check virtual hosts.
0 - Completed Successfully 1 - Otherwise
Template
Sagar R. Shah
Copyright 2006-2007 Sagar R. Shah, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install httpd_ctl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm httpd_ctl
CPAN shell
perl -MCPAN -e shell install httpd_ctl
For more information on module installation, please visit the detailed CPAN module installation guide.