LinuxQuestions.org
Help answer threads with 0 replies.
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 05-04-2004, 05:26 PM   #1
gslater
LQ Newbie
 
Registered: Feb 2004
Location: London
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
Question Starting Apache web server automatically


Hi,

I am running Red Hat 9 on my pc with Apache web server to host my web site. But on the odd occasion my pc needs to be rebooted in which case I need to go to the init.d direcgtory and start the httpd manually. How could I automate this so that my web server starts up automatically on boot up?
 
Old 05-04-2004, 05:55 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try this:
chkconfig httpd on
 
Old 05-05-2004, 07:57 AM   #3
sashhoney
Member
 
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
well there is a simple way to run httpd as a standalone daemon
as u r using redhat its even more simpler
run this command in the terminal
$ ntsysv

now u will see various daemon present in ur system
enable httpd by pressing space bar

now after coming out run this command once
service httpd start
 
Old 05-09-2004, 10:08 AM   #4
gslater
LQ Newbie
 
Registered: Feb 2004
Location: London
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Hi,

I have tried both chkconfig httpd on as well as ntsysv and on both the response I get is "command not found" ??
 
Old 05-09-2004, 02:44 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Are you logged in as root? Make sure that /sbin is in your path. When you su, use "su -" to load a new shell for root or use the full path:
/sbin/chkconfig
 
  


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
starting Apache automatically nodger Linux - Software 2 11-04-2005 04:54 PM
starting apache automatically upon booting zoso *BSD 4 02-14-2005 10:01 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
Starting a Web Server zaphanol Linux - Networking 2 09-03-2003 10:26 PM
Problem starting Apache Web Server kutubjt Linux - Newbie 2 04-04-2001 01:31 AM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration