Hopefully this is a quick question. I've been poking at google for a bit trying to figure out what I'm supposed to do with no luck.
So the problem is that in OS X, there are many programs installed with Fink in /sw/bin (like "latex"). In PHP, I can't just execute "latex" since /sw/bin is not in the path. I can put in the full path (/sw/bin/latex) which works, of course, but that has to be addressed per script and I have many users that run stuff that might be in /sw/bin.
Looking at a phpinfo(), I see that from the "Apache Environment", there's a PATH variable:
PATH /usr/local/bin:/usr/bin:/bin
How can I change that? It doesn't seem to come from /etc/profile (if it did, it would be PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"). If I'm doing an exec(), is this the PATH that is used?
Thanks in advance for any advice!