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-18-2010, 10:12 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
/etc/init.d/httpd restart


Every time i restart a server i have to run that line to get the website running on there to work. Is there something i can do so it'll start automatically and i dont have to do that every time?
 
Old 10-18-2010, 10:16 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Quote:
Originally Posted by rjo98 View Post
Every time i restart a server i have to run that line to get the website running on there to work. Is there something i can do so it'll start automatically and i dont have to do that every time?
Use the following command:

Quote:
#chkconfig httpd on
or

Quote:
#/sbin/chkconfig httpd on
It will start the service when the runlevel starts itself.
 
1 members found this post helpful.
Old 10-18-2010, 10:21 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
cool, thanks
 
Old 10-18-2010, 10:23 AM   #4
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Most welcome
Don't forget to mark the thread as solved if the problem is resolved.
 
  


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
Can not restart httpd”File size limit exceeded(core dumped) $HTTPD -DSSL” sreejithedl Linux - Server 2 10-12-2009 12:24 PM
Starting httpd: /etc/init.d/httpd: line 40: 10243 Segmentation fault LANG=C grep RMLinux Linux - Newbie 10 12-01-2008 11:17 PM
cronjob to restart httpd if httpd is dead heropage Linux - Software 1 10-31-2007 02:22 PM
problems with /etc/rc.d/rc.httpd restart gawain Slackware 4 02-11-2007 11:52 AM
httpd restart error sandeshshrestha Linux - General 4 03-27-2006 08:09 AM


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