1. Home
  2. Computing & Technology
  3. Web Design / HTML

How To Restart an Apache Web Server (Linux)

By , About.com Guide

If your Linux Apache Web server is started, you can stop and restart it with just a couple of steps.
Difficulty: Easy
Time Required: 1 minute
Here's How:
  1. Login to your Web server machine using SSH or telnet.
  2. Su to root.
  3. Run the apache control program:
    apachectl graceful
  4. You can also run the apache control program in this way:
    apachectl restart
Tips:
  1. graceful reloads the configuration files and gracefully restart. Any current connections are allowed to complete.
  2. restart reloads the configuration files and restarts. Any current connections are terminated immediately.
  3. If the server isn't running, these commands will start it up.
Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.