Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

STARTING APACHE2.0 AT BOOTUP OF RHL 9.0

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? I tried renaming the original httpd file as httpd1 and then trying the above written commands and they worked but in fact apache 2.0.50 still didnt start up.Any advices will be highly appreciated.
Regards

Comments

  • kc2keokc2keo Posts: 110Member
    : 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? I tried renaming the original httpd file as httpd1 and then trying the above written commands and they worked but in fact apache 2.0.50 still didnt start up.Any advices will be highly appreciated.
    : Regards
    :
    :


    OK, from what I understand is that you kept the current default apache server installed and you installed a newer one from source. I do not use Redhat but I think I have an idea of how the rc.d directores work. I think the rc.d is for daemons I think the rc3 and rc5 would be runlevels 3 and runlevels 5.

    Anyway, if you try to start the new web server from "/home/usr/apache2/bin/httpd" does it startup? Hmmm, that is a strange path. Are you sure the path is "/home/usr/apache2/bin/httpd" and not "/usr/apache2/bin/httpd"? Other common locations I find apache2 installs to is /usr/local/apache2. The config file directory should be in /etc.

    Try:

    [code]
    #cd /home/usr/apache2/bin
    #./httpd start
    #./httpd -v
    [/code]

    I think that should get your version your running. If it is the desired version then thats good. To get it to boot at runtime I think i'd try this:

    [code]
    #cd /etc/rc.d/init.d
    #mv httpd httpd.old
    #ln -s /home/usr/apache2/bin/httpd
    [/code]

    This should create the Symbolic/Soft link to the binary file. You should not have to touch the other directores. That is the only soft link I think you will need to touch. The files directories such as /etc/rc.d/rc3.d are symbolic links already to other files. So if your current apache server starts at boot you should be good. Usually startup scripts reside within /etc/init.d or /etc/rc.d/init.d.

    Another word of advise to make administering your servers easier is to use the webmin tool. Their homepage is http://www.webmin.com/. Read all about it as it has been a nice tool for me. I am able to administer things such as my SSH server, apache server, Squid server, Samba, and more over the web. You also have the option to enable SSL communication with Webmin.

    Hope that helps:

    --George


    <------------------------------------------>

    Reach me at:

    AIM IM: kc2keo
    EMAIL: kc2keo@gmail.com

    Pri. Homepage: http://MouyiosMachine.hopto.org:8080

Sign In or Register to comment.