Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Karen Lilly Creations

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 82 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       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


       apachectl  is a front end to the Apache HyperText Transfer
       Protocol (HTTP) server. It is designed to help the  admin­
       istrator  control the functioning of the Apache httpd dae­

       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 appro­
       priate 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 com­
       ments in the script.


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

                     -k restart.

                     Displays a full status report from  mod_sta­
                     tus.  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 sta­
                     tus  report  can  be set by editing the STA­
                     TUSURL 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  omit­

                     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.

                     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 additional option is available,  but  depre­

                     This  is  equivalent  to  apachectl -k start
                     -DSSL. We recommend that you use  that  com­
                     mand   explicitly,   or   you   adjust  your
                     httpd.conf to remove the <IfDefine>  section
                     so that SSL will always be available.

Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.10 Seconds