apache2 env path

sheldon sheldon at oneblackbear.com
Thu Jan 8 02:53:01 PST 2009


Ryan Schmidt <ryandesign <at> macports.org> writes:

> exec("/opt/local/bin/identify 2>&1", $output, $error_code);

Thanks for the idea, it does work if I use an absolute path.

Unfortunately this approach isn't very practical since it would
hard code the path to Imagemagick in my web framework. It would
mean having to change that path each time I deploy to a different
server. I know it's being a bit anal since this does actually work,
but with no way to amend the path externally it would make deployment
a nightmare.



More information about the macports-users mailing list