LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2007, 10:42 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Rep: Reputation: 33
Question restart http server


Hello all,

Quick question, how do I restart the HTTP server?

Thanks.
 
Old 10-28-2007, 10:53 AM   #2
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296

Rep: Reputation: 30
Code:
/etc/init.d/service start|stop|restart
where service is the service whose status you would like to alter.
 
Old 10-28-2007, 11:03 AM   #3
E71
LQ Newbie
 
Registered: Oct 2007
Distribution: CentOS 5.3
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by swamprat View Post
Hello all,

Quick question, how do I restart the HTTP server?

Thanks.
Try:
service httpd restart
 
Old 10-28-2007, 11:54 AM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
I think the service command is a Redhat distro family command. This includes Redhat, Fedora, Centos, Scienitific Linux, and others.

Brian

Last edited by Brian1; 10-28-2007 at 11:55 AM.
 
Old 10-28-2007, 12:17 PM   #5
Jim44
Member
 
Registered: Feb 2006
Location: Atlanta, Georgia, USA
Distribution: Mint, Ubuntu, Centos
Posts: 52

Rep: Reputation: 15
And if it's a debian flavor you can try:

/etc/init.d/apache restart
or
/etc/init.d/apache2 restart
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
monodoc-http gives a http 500 internal server error ernesto_cgf Linux - Software 0 05-10-2007 04:48 PM
HTTP Server Plugin for WebSphere Server 6.0 arcane_dark Linux - Software 1 12-16-2005 01:32 PM
HTTP Server Plugin for WebSphere Server 6.0 arcane_dark Linux - Software 0 12-16-2005 04:23 AM
Linux email server and some HTTP server questions Steven6282 Linux - General 7 02-19-2003 04:39 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration