Solved

Apache Startup at Redhat9 bootup

Posted on 2004-08-18
3
197 Views
Last Modified: 2010-03-04
Hi Mr.Hoffmann
How u doin? My query is that how can i make apache boot at startup of RHL 9. I downloaded apache 2.0.50 and its installed in lets say /home/usr/apache2/bin.I think i should do the following:

ln -s /home/usr/apache2/bin/httpd /etc/rc3.d/init.d/httpd
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/httpd
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc5.d/httpd

Now when i try making these soft links,after executing the first command i get the error:
ln :`/etc/rc.d/init.d/httpd`: file exists
which is correct in fact.But this is the file for the Apache version which came as default with RHL 9.I want to start the version 2.0.50 which i downloaded and installed manually.How can i do that?
Regards
0
Comment
Question by:parvinderg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
samri earned 50 total points
ID: 11839351
one easy trick would be to edit the file /etc/rc.d/init.d/httpd and adjust the location of apachectl accordingly.  

Locate the following line, and adjust the path accordingly, check you apache installation.  The path may vary depending on you build preference.

httpd=/usr/sbin/httpd
moduledir=/usr/lib/apache
0
 
LVL 26

Expert Comment

by:ushastry
ID: 11840471

If apache is installed in /home/usr/apache2, and there will have the 'httpd' file inside /home/usr/apache2/bin/httpd

build a symbolic link to /etc/rc.d/init.d/  ( First check whether httpd is running, stop if it is.)


ln -s /home/usr/apache2/bin/httpd  /etc/rc.d/init.d/httpd

makeanother link to /etc/rc.d/rc3.d/ and /etc/rc.d/rc5.d
ln -s /etc/rc.d/init.d/httpd  /etc/rc.d/rc3.d/httpd
ln -s /etc/rc.d/init.d/httpd  /etc/rc.d/rc5.d/httpd

restart apache..

Hope This Helps!
0
 

Author Comment

by:parvinderg
ID: 11844266
Thanks samri...
infact i had to start the httpd services too in the server settings as i had unclicked it previously as they were linked to the earlier version of Apache.
regards
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question