LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2003, 10:25 PM   #1
hurgh
LQ Newbie
 
Registered: May 2003
Posts: 4

Rep: Reputation: 0
Redhat 9 and Apache simple question.


Ok,

This will be a very simple question to most of you out there, but to me, i dont use redhat very much and when i do everything seems to be in a different place than most of the other distro's.

So the question is, how do i make apache load when the computer starts up?

there is a file in /etc/init.d/ called httpd, and if i do /etc/init.d/httpd start apache will load, but i dont know how to associate it with a runlevel to make it load at boot.

If someone could help me with this I would appreciate it.

I am using redhat 9

Thanks.

-Hurgh-
 
Old 10-06-2003, 11:06 PM   #2
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
here is what works for me:

add

/etc/init.d/httpd start

to the bottom of the file

/etc/rc.d/rc.local

is this the apache that comes with RH or did you compile this one?
 
Old 10-07-2003, 12:21 AM   #3
hurgh
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah i figured that i could do the rc.local thing. This is what i use to do when i used it, but i thought that is was about time to learn the proper way.

I noticed that there was simlinks in the /etc/rc.d/rc.0 and so on folders to /etc/init.d/httpd and mysql (another thing i want to start up) and stuff like that, but they dont seem to work.

The only difference that i did notice with the apache and mysql over the others is that their simlinks started with a K## where as the others started with a S## (where ## is a number).

I have spent about 1 hour searching the net for an answer to this, but i can not seem to find anything that tells me how to do it for red hat (that is doing it without using the rc.local file). I know there is a way. Just a matter of finding it.

Thanks for your suggestion, if i cant find the way, then i will just end up doing it with the rc.local file.

And yes, this is the apache and mysql that comes from the redhat install.

Thanks again

-Hurgh-
 
Old 10-07-2003, 12:36 AM   #4
hurgh
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Well, how is that,

Typing the last message i had an idea on what might make it work, and i tested it and I was correct.

I mentioned in the /etc/rc.d/rc0-7.d dir's there was a K##httpd file and what ever, well, if you change the K to an S then it will work. I did not do it to the file in every run level, i just copied what sshd had. which was runlevel 3,4,5 and 6 i think, i cant remember.

So there you go.

If anyone else has this problem i hope they can work it out from this message

-Hurgh-
 
Old 10-07-2003, 01:04 AM   #5
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 31
I may be mistaken, but i believe runlevel 6 is the -kill processes. Might have difficulties shutting down if you are trying to start apache rather then kill it.
 
Old 10-07-2003, 02:31 AM   #6
hurgh
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Yes ezra143,

you are correct, runlevel 6 is the shutdown level, i was just typing the last post from memory and i could not remember if i had changed it in runlevel 6 or not, but i just checked and i had not so thanks.

I just copied what there was for sshd, cause that started at the times and stuff i wanted httpd and mysql to start so it was all easy.

Thanks all for your help.

-Hurgh-
 
  


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
SIMPLE Apache question funehmon Linux - Software 6 02-10-2005 12:01 AM
Simple apache question technochef Linux - Software 5 09-06-2004 07:31 PM
simple benchmark for apache question. megaspaz Linux - General 2 11-05-2003 06:20 PM
Simple Apache Question ppuddick Linux - Software 3 07-09-2003 12:15 PM
Apache question...hopefully, simple tarballed Linux - Networking 1 02-04-2003 12:44 PM


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