Where to set the right "Apache" to run after reboot on a RedHat 5 machine ?!

Hi,

I'am working on a RedHat server (V5) and having on it 2 Apache instances, but after each reboot i have the wrong one starting so that i have to stop it doing "httpd -k stop" and than launch the right one doing "/etc/init.d/httpd -k start".

For more Details, you may see the link i inserted below and that is the same question i made days ago ( With more details ! ) in the forum for "Dummies" in the same web site :rolleyes:

thank you so much for any kind of help cause i want to fix that before the end of the day.

i also made a copy of my "apachectl" file from the instance of "apache2" that i would like to use, replacing the one of "apache" and than made a reboot, but it doesn't work !

thanks again

Init will launch whatever you tell it and in whatever order based on what's in the rc*d that corresponds to your runlevel. Find the apache service script in the appropriate directory and modify it to invoke the instance you want.

according to what you wrote and what i understood, i should have under "/etc/init.d" directory , the right Apache instance, and i do have it !!, since when i do "/etc/init.d/httpd start", i have the right "apache" instance running, but when i reboot the server, the "apache" instance that will be running is the other one !!! ( i check this each time doing : ps -eaf | grep httpd ----> and this will show me what apache instance is running after the reboot ! )

Mehdi1973, you have already asked this question in the Unix for Dummies forum.

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

Sorry,

I'll cancell it from the other Forum "the Dummi Forum..."

Sorry again and HOPE I'LL HAVE AN ANSWER ON THIS FORUM