the script has been done a+x and the httpd that is there was specified this way /usr/local/apache/bin/httpd for each occurance of httpd in that script.
And still i am getting this error. no wonder did i post here, as i was totally confused. Arvind ----- Original Message ----- From: "Abhi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 2:48 PM Subject: Re: [LIH]how to start apache | | | > i took the file from this link | > | http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/cha | > p29sec247.html | > | > | > httpd is the binary that he is calling directly. | > | > so what i did was i replaced httpd with | > /usr/local/apache/bin/httpd | > | > and even then it gave me the same error. | > | | *Chuckle* | | First of all... me thinks someone forgot to chmod a+x the script earlier. | | Second... there is nothing wrong with the script except that it will *not* | call the httpd binary you want. | The clue is in the lines | # Source function library. | . /etc/rc.d/init.d/functions | | As you see... a custom path is set within the script. This path is the one | searched for any occurances of httpd binary. | | # First set up a default search path. | export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" | | The path does *not* contain /usr/local/apache/bin btw... :) | | Assuming that the RH's own apache rpm is installed, the httpd binary in | /usr/sbin will be found first. The function daemon() in the | /etc/rc.d/init.d/functions takes care of starting it up. | | Essentially the script relies on searching for an httpd binary within the | path and excuting it.and this happens within /etc/rc.d/init.d/functions | which is called by your script. You will have to insert your httpd's | location in the path to make this work, which IMHO is not a good way. | | If you really, really need this, the best way is to compile apache | ith --with-layout=RedHat option. This will essentially overwrite the | /usr/sbin binary. | | That is what I do in any case. | | | Regards, | Abhi | | | _______________________________________________________________ | | Don't miss the 2002 Sprint PCS Application Developer's Conference | August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm | | _______________________________________________ | linux-india-help mailing list | [EMAIL PROTECTED] | https://lists.sourceforge.net/lists/listinfo/linux-india-help _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
