Solved

Apache Startup at Redhat9 bootup

Posted on 2004-08-18
3
194 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
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now