Ubuntu Linux Start / Restart / Stop Apache Web Server
Q. How do I restart or stop Apache 2 web server under Ubuntu Linux?
A. /etc/init.d/apache2 is service script used to start / stop / restart the Apache2 service under Debian or Ubuntu Linux. You need to login as root or use sudo command restart Apache.
Task: Start Apache 2 Server
# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start
Task: Restart Apache 2 Server
# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart
Task: Stop Apache 2 Server
# /etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- Ubuntu Linux: Start / stop / restart OpenSSH / ssh server
- Restart Httpd Server
- Use sudo or sudoers to start, stop & restart Apache
- Ubuntu Linux restart network
- How To Start and Stop MySQL Database Server From A Shell Prompt
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
Tags: /etc/init.d/apache2, apache 2, debian restart apache, debian start apache, Linux, Ubuntu Linux, ubuntu restart apache, ubuntu start apache, web server ~ Last updated on: March 6, 2008




Recent Comments
Today ~ 17 Comments
Today ~ 2 Comments
Today ~ 37 Comments
Today ~ 46 Comments
Yesterday ~ 2 Comments