Select Page
Notifications
Clear all

How To Restart an Apache Web Server (Linux)

(@Anonymous)
New Member

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.

Quote
Topic starter Posted : 03/06/2010 9:21 am
(@Anonymous)
New Member

Re: How To Restart an Apache Web Server (Linux)

Actually the command you run depends on what Linux operating system you are running and how you installed Apache.

For Ubuntu it is: /etc/init.d/apache2 restart or stop or start

For CentOS it is: service httpd restart or stop or start

ReplyQuote
Posted : 17/06/2010 2:41 am
(@Anonymous)
New Member

Re: How To Restart an Apache Web Server (Linux)

how about ??
service apache2 stop|status|restart|start
service msyql stop|status|restart|start

ReplyQuote
Posted : 18/06/2010 9:47 am
Share: