APACHECTL



APACHECTL

NAME
SYNOPSIS
SUMMARY
OPTIONS

NAME

apachectl − Apache HTTP Server Control Interface

SYNOPSIS

When acting in pass-through mode, apachectl can take all the arguments available for the httpd binary.

apachectl [ httpd-argument ]

When acting in SysV init mode, apachectl takes simple, one-word commands, defined below.

apachectl command

SUMMARY

apachectl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the functioning of the Apache httpd daemon.

The apachectl script can operate in two modes. First, it can act as a simple front-end to the httpd command that simply sets any necessary environment variables and then invokes httpd, passing through any command line arguments. Second, apachectl can act as a SysV init script, taking simple one-word arguments like start, restart, and stop, and translating them into appropriate signals to httpd.

If your Apache installation uses non-standard paths, you will need to edit the apachectl script to set the appropriate paths to the httpd binary. You can also specify any necessary httpd command line arguments. See the comments in the script for details.

The apachectl script returns a 0 exit value on success, and >0 if an error occurs. For more details, view the comments in the script.

OPTIONS

Only the SysV init-style options are defined here. Other arguments are defined on the httpd manual page.

start

Start the Apache httpd daemon. Gives an error if it is already running. This is equivalent to apachectl -k start.

stop

Stops the Apache httpd daemon. This is equivalent to apachectl -k stop.

restart

Restarts the Apache httpd daemon. If the daemon is not running, it is started. This command automatically checks the configuration files as in configtest before initiating the restart to make sure the daemon doesn’t die. This is equivalent to apachectl -k restart.

fullstatus

Displays a full status report from mod_status. For this to work, you need to have mod_status enabled on your server and a text-based browser such as lynx available on your system. The URL used to access the status report can be set by editing the STATUSURL variable in the script.

status

Displays a brief status report. Similar to the fullstatus option, except that the list of requests currently being served is omitted.

graceful

Gracefully restarts the Apache httpd daemon. If the daemon is not running, it is started. This differs from a normal restart in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them. This command automatically checks the configuration files as in configtest before initiating the restart to make sure Apache doesn’t die. This is equivalent to apachectl -k graceful.

graceful-stop

Gracefully stops the Apache httpd daemon. This differs from a normal stop in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This is equivalent to apachectl -k graceful-stop.

configtest

Run a configuration file syntax test. It parses the configuration files and either reports Syntax Ok or detailed information about the particular syntax error. This is equivalent to apachectl -t.

The following option was available in earlier versions but has been removed.
startssl

To start httpd with SSL support, you should edit your configuration file to include the relevant directives and then use the normal apachectl start.




More Linux Commands

manpages/perlapio.1.html
perlapio(1) - perl's IO abstraction interface. (Man Page)...
Perls source code, and extensions that want maximum portability, should use the above functions instead of those defined in ANSI C s stdio.h. The perl headers (

manpages/perl5122delta.1.html
perl5122delta(1) - what is new for perl v5.12.2 (Man Page)
This document describes differences between the 5.12.1 release and the 5.12.2 release. If you are upgrading from an earlier major version, such as 5.10.1, first

manpages/lsetxattr.2.html
lsetxattr(2) - set an extended attribute value (Man Page)...
lsetxattr.2 - Extended attributes are name:value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the normal attr

manpages/tset.1.html
tset(1) - terminal initialization - Linux manual page.......
Tset initializes terminals. Tset first determines the type of terminal that you are using. This determination is done as follows, using the first terminal type

manpages/halt.8.html
halt(8) - Halt, power-off or reboot the machine (Man Page)
halt.8 - halt, poweroff, reboot may be used to halt, power-off or reboot the machine. OPTIONS The following options are understood: --help Print a short help te

manpages/XdbeFreeVisualInfo.3.html
XdbeFreeVisualInfo(3) - frees information returned by XdbeGe
This function frees the list of XdbeScreenVisualInfo returned by the function XdbeGetVisualInfo(). SEE ALSO DBE, XdbeAllocateBackBufferName(), XdbeBeginIdiom(),

manpages/lsdiff.1.html
lsdiff(1) - show which files are modified by a patch........
List the files modified by a patch. You can use both unified and context format diffs with this program. OPTIONS -n, --line-number Display the line number that

manpages/intro.5.html
intro.5 - intro(5) - Introduction to file formats - Linux manual page
Section 5 of the manual describes various file formats and protocols, and the corresponding C structures, if any. NOTES Authors and copyright conditions Look at

manpages/console.4.html
console(4) - console terminal and virtual consoles (ManPage)
A Linux system has up to 63 virtual consoles (character devices with major number 4 and minor number 1 to 63), usually called /dev/ttyn with 1 <= n <= 63. The c

manpages/cyr_df.8.html
cyr_df(8) - report Cyrus spool partition disk space usage...
Cyr_df examines the Cyrus spool partitions and reports on their disk space usage. Cyr_df reads its configuration options out of the imapd.conf(5) file unless sp

manpages/gitcore-tutorial.7.html
gitcore-tutorial(7) - A git core tutorial for developers....
This tutorial explains how to use the core Git commands to set up and work with a Git repository. If you just need to use Git as a revision control system you m

manpages/toc2cddb.1.html
toc2cddb(1) - translates a TOC file of cdrdao(1) into a cddb
toc2cddb translates a TOC file of cdrdao(1) into a cddb file and prints it to stdout. OPTIONS -h Shows a short help message. -V Prints the version of toc2cddb.





We can't live, work or learn in freedom unless the software we use is free.