LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-14-2010, 09:44 PM   #1
ansarynaga
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Rep: Reputation: 0
how to set httpd to stop automically when reboot in my server??


by default httpd will automatically start when reboot..??


is there any command to stop it autmatically when reboot??

help me guys!!
 
Old 10-14-2010, 09:54 PM   #2
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
If you are on something like Redhat or Fedora you can do "chkconfig httpd off" I don't know what the equivalent would be for Debian, or Debian based distros.

Last edited by grim76; 10-14-2010 at 09:54 PM. Reason: Changed on to off....misread disable for enable
 
Old 10-14-2010, 10:02 PM   #3
leejohnli
Member
 
Registered: Sep 2010
Posts: 66

Rep: Reputation: 2
on debian or ubuntu
update-rc.d apache2 default -this is to start apache2 on runlevel
update-rc.d -f apache2 remove -this will remove apache2 on runlevel
update-rc.d apache2 stop -this will stop apache2 on runlevel
 
1 members found this post helpful.
Old 10-14-2010, 10:05 PM   #4
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
check this out man.

http://www.linuxjournal.com/article/4445
 
1 members found this post helpful.
Old 10-14-2010, 10:10 PM   #5
ansarynaga
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Original Poster
Rep: Reputation: 0
guys thanks for ur reply!!


i used Redhat Enterprise Server!!


i will try all this command later!!


wohohoo!!


THANK YOU SO MUCH!!
 
Old 10-15-2010, 12:38 PM   #6
linuxrndblog
Member
 
Registered: Oct 2010
Location: India
Posts: 89

Rep: Reputation: 2
Run following command on your linux box.

#chkconfig httpd off
 
  


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
Set a cronjob to reboot a server every 3 days, to fix any problems abefroman Linux - Server 5 06-01-2010 02:39 PM
Cannot stop httpd , named, proftpd etc.. !! ximpda Linux - Server 4 04-12-2009 11:44 AM
problem with kolab installation - can't stop httpd meczo Linux - Server 4 08-05-2008 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:30 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