Apache - basic control and behaviour

From Helpful
Revision as of 14:11, 19 September 2013 by Helpful (Talk | contribs)

Jump to: navigation, search
Related to web development, hosting, and such: (See also the webdev category)
JS libraries and frameworks

Server stuff:

Dynamic server stuff:


This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, fix, or tell me)

Init scripts:

  • Start
  • Stop
  • Graceful restart
    • idea: minimize downtime while reloading config and re-opening log files
    • first does a configtest - doesn't restart if that fails(verify)
    • then does
      apachectl -k graceful
      , which sends SIGUSR1
    • advises children to stop after their current requests; each is replaced as soon as they stop (verify).
    • It's possible for there to be a short time in which no new connections are served
    • things that are not strictly apache children (dynamic scripting and such) may stall for relatively long (consider e.g. keepalive)
  • basic/hard restart
    • first does a configtest
    • does
      apachectl -k restart
      , which sends SIGHUP

Not all startup/init scripts are set up the same way.

For example, some interpret
as graceful restart, others as a hard restart.