Page 1 of 1

restarting an apache

Posted: Thu Mar 04, 2004 5:02 am
by pelegk2
is there a way using command line to restart the apache
(withoguht using the apache monitor)?
thanks in advance
peleg

Posted: Thu Mar 04, 2004 5:10 am
by JayBird
Heres some codes for ya, restart is -K restart

Code: Select all

Usage: apache ї-D name] ї-d directory] ї-f file] ї-n service]
              ї-C "directive"] ї-c "directive"] ї-k signal]
              ї-v] ї-V] ї-h] ї-l] ї-L] ї-S] ї-t] ї-T]
  -D name          : define a name for use in  directives
  -d directory     : specify an alternate initial ServerRoot
  -f file          : specify an alternate ServerConfigFile
  -C "directive"   : process directive before reading config files
  -c "directive"   : process directive after  reading config files
  -v               : show version number
  -V               : show compile settings
  -h               : list available command line options (this page)
  -l               : list compiled-in modules
  -L               : list available configuration directives
  -S               : show parsed settings (currently only vhost settings)
  -t               : run syntax check for config files (with docroot check)
  -T               : run syntax check for config files (without docroot check)
  -n name          : name the Apache service for -k options below;
  -k stop|shutdown : tell running Apache to shutdown
  -k restart       : tell running Apache to do a graceful restart
  -k start         : tell Apache to start
  -k install   | -i: install an Apache service
  -k config        : reconfigure an installed Apache service
  -k uninstall | -u: uninstall an Apache service
Mark

Posted: Thu Mar 04, 2004 5:16 am
by jigaruu
service httpd restart

see this might do but for this u need to be root.