|
|
Question : To httpd or to apachectl?? upgrade kills autostart
|
|
I upgraded and Make/ Make dep, etc with a new distro of Apache. Previously HTTPD start was in rc.d httpd this calls the older version which lives in /usr/sbin/httpd (an executable)
Now I must use /usr/local/apache/bin/apachectl start
in init.d rc.d the script for starting the apache server during boot up time seems to reside.
I have tried adding the new path to /etc/profile tried cp the new version of httpd to /usr/sbin but there is a module in the newer version that was compiled in to use php4 and when called from anywhere other than apachectl or /usr/local/apache/bin it aborts and complains about the missing module. both apachectl and httpd start work from /usr/local/apache/bin, but the version of httpd in /usr/sbin is the same as in the other dir. How do I change this. Pretty minor, but an irritant.
|
Answer : To httpd or to apachectl?? upgrade kills autostart
|
|
Alter your /etc/rc.d/init.d/httpd file so that the command reads : damemon /usr/local/apache/bin/httpd
The file in this directory is a simple script, and the above note is only one of several possible solutions. You can also remove the httpd script from the init.d directory, and replace it with a link to /usr/local/apache/bin/apachectl
If you do this, you will have to relink the rc3 (rc4, rc5, rcn...) directory entries for http startup.
Good Luck!
Brandon
|
|
|
|
|