Alexander Mylnikov


Star / Stop / Restart Apache 2 Web Server

How do I restart Apache 2 Web Server under Debian / Ubuntu Linux or UNIX operating systems?

Apache is primarily used to serve both static content and dynamic Web pages on the World Wide Web. Many web applications are designed expecting the environment and features that Apache provides.

First, login to server using ssh, if server is not in local data center:
ssh [email protected]
Once logged in type the following commands

Restart Apache 2 web server, enter:

# /etc/init.d/apache2 restart

If you are using Ubuntu use sudo:

$ sudo /etc/init.d/apache2 restart

To stop Apache 2 web server, enter:

# /etc/init.d/apache2 stop
$ sudo /etc/init.d/apache2 stop

To start Apache 2 web server, enter:

# /etc/init.d/apache2 start
$ sudo /etc/init.d/apache2 start

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.