Link to home
Start Free TrialLog in
Avatar of parvinderg
parvinderg

asked on

Apache Startup at Redhat9 bootup

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
ASKER CERTIFIED SOLUTION
Avatar of samri
samri
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

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!
Avatar of parvinderg
parvinderg

ASKER

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