PATH problem
Mel
fbsd.questions at rachie.is-a-geek.net
Mon Nov 10 13:35:52 PST 2008
On Monday 10 November 2008 21:36:43 Albert Shih wrote:
> But when I use the application throught the web it's not working. But I
> don't known how to tell apache ? mod_perl ? the PATH.
Apache.
Check the shell script /usr/local/sbin/envvars. In short, any file
in /usr/local/etc/apache22/envvars.d is sourced into the start up environment
of apache, through /usr/local/etc/rc.d/apache22 start up script. Unless a
module or script explicitly cleans the environment before forking an external
program, the variabels set at start up are preserved.
The following should work for you:
echo "export PATH=$PATH" > /usr/local/etc/apache22/envvars.d/PATH
You may want to clean out the path a bit more, pending your security policies.
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
More information about the freebsd-questions
mailing list