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 !
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 ! )