Starting and Stopping Apache

Why stop and start your web server? (Answer)

Apache can run several ways:

How to Stop and Restart the Server

Lab
  • See whether Apache is running -- click here:

    http://localhost/

  • If it is, stop it.
  • Verify that it's not running (click above).
    Observe that you get only an error.
  • Restart it.
  • Verify that the document is now delivered (click above).
  • Again, shut it down.
  • Next, restart it from a console window.
  • Watch what happens in the Apache Services applet.
  • Again, verify that it's working (click above).

What Web Servers Do

  • Now your web server is running... what is it doing, exactly???
  • It's servicing HTTP requests.
  • That's why it's called HTTPD (daemon).
  • But what's HTTP? What's an HTTP request?
The architecture of the HTTP protocol.

Demo

Hand-Simulation of an HTTP Client

  • Invoke telnet.
  • Connect to any HTTPD out there on the web via port 80, one of the standard port numbers.
  • Give it an HTTP request.
  • See how the server responds.
  • This technique is useful... why?