LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 09:12 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
/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, 09:16 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

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, 09:21 AM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

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

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


Reply



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 11:24 AM
Starting httpd: /etc/init.d/httpd: line 40: 10243 Segmentation fault LANG=C grep RMLinux Linux - Newbie 10 12-01-2008 10:17 PM
cronjob to restart httpd if httpd is dead heropage Linux - Software 1 10-31-2007 01:22 PM
problems with /etc/rc.d/rc.httpd restart gawain Slackware 4 02-11-2007 10:52 AM
httpd restart error sandeshshrestha Linux - General 4 03-27-2006 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 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
Open Source Consulting | Domain Registration