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 07-17-2002, 11:25 PM   #1
csjosh
LQ Newbie
 
Registered: Jun 2002
Posts: 16

Rep: Reputation: 0
Question activate apache after redhad 7.1 install


Hello,

I just installed RedHad 7.1 and am trying to get apache to run so I can see web pages and run cgi programs on my computer but not online. I am new to apache, any suggestions? Thanks, Josh
 
Old 07-18-2002, 05:30 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
did you download apache or did you take the version that comes with rh?
 
Old 07-18-2002, 12:27 PM   #3
csjosh
LQ Newbie
 
Registered: Jun 2002
Posts: 16

Original Poster
Rep: Reputation: 0
The version it came with. Apache won't startup on boot or shutdown on shutdown.
 
Old 07-19-2002, 02:01 AM   #4
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
dont use the rh7.1 ver, use a self-compiled 1
 
Old 07-19-2002, 02:50 AM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i dont know where rh installs apache, so someoneelse may know better.
but u can try
`/usr/local/apache/bin/apachectl start` (stop/restart)
or sbin instead of bin
That would be the command for the current `default`installation.
Is there no HOWTO or README in the apache directory?
good luck,
jens
 
Old 07-19-2002, 03:04 AM   #6
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Quote:
Originally posted by j-ray
i dont know where rh installs apache, so someoneelse may know better.
but u can try
`/usr/local/apache/bin/apachectl start` (stop/restart)
or sbin instead of bin
That would be the command for the current `default`installation.
Is there no HOWTO or README in the apache directory?
good luck,
jens
in rh its different, it uses the redhat layout in rh apache
 
Old 07-19-2002, 05:59 PM   #7
csjosh
LQ Newbie
 
Registered: Jun 2002
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks

Thanks. I found out where to start it manually, but it won't start up when I first boot the machine and shutdown when I shut down the machine.
 
Old 07-19-2002, 06:13 PM   #8
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
As you already know, the startup script for apache under redhat is /etc/rc.d/init.d/httpd (stop|start|restart|reload).
Before we start,

a)have you installed XFree86?
b)If yes, do you use a graphical login prompt or do you login at a text prompt and then use 'startx'?

If you're using redhat, I'd probably think the answer to the first qn is YES. If then, go ahead and logon as yourself, and when you are in X, open a command prompt and type in serviceconf. You can also find it under the programs menu under sytem settings as 'Service configuration'. Type in the root password. Check the box for httpd in the window that pops up for runlevel 3 and runlevel 5 ( to cover both text and graphical login prompts).

If the answer to a) is no (you'll have to create a link to the startup script under the corresponding runlevel directories), let us know.

Nandu

Last edited by nxny; 07-19-2002 at 06:14 PM.
 
Old 07-19-2002, 06:15 PM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
To start apache on boot up you need to modify your startup scripts, go to /etc/rc.d/ directory, there you'll find rc0.d trough 6 (they correspond to the appropriate runlevels), rc.local and a couple of more, what we need to do is just determine what runlevel should be modified, if you boot straight to X (GUI) your runlevel is set to 5, hence we need to modify runlevel 5 startup scripts - go to rc5.d in this case, do
ls -l
there you'll see symlinks pointed to ../init.d/executable. Note that every symlink starts with either K or S, K - is for kill don't start service, and S - is for start service, note also the two numbers following K os S it is a sequence number, now locate the one which contains httpd in its name, take a note where it points and a sequence number, now we need to change K link to S link with the same seq number, and final destination,
as root
ln -sf /where/original/points/to S##httpd
that's all next time you boot apache will start automatically.
A side note, make sure in runlevel 6 (reboot) rc6.d/ you have a symlink which kills apache (K##httpd) if there is none create it
ln -sf /where/apache/exec/is K##httpd
the same must be done for runlevel 0 (shutdown) as well.
Good luck.
 
Old 07-21-2002, 02:16 AM   #10
csjosh
LQ Newbie
 
Registered: Jun 2002
Posts: 16

Original Poster
Rep: Reputation: 0
Smile Thank You

Thank you very much. I will always be greatful of your help.
 
  


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
activate swap on install ? waynep Linux - Newbie 5 02-17-2005 08:15 PM
configuring apache to activate php modules? vickr1z Linux - Newbie 2 09-02-2004 03:27 AM
How to install/activate PHP Pug405 Linux - Software 2 05-01-2004 04:02 PM
Partition Magic + XP Pro w/ NTFS + trying to install Linux Redhad 7.2 rvalbuena Linux - Software 7 03-13-2003 11:20 PM
problem to install php in redhad 7 ashis Linux - Software 3 06-14-2001 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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