apache2 env path

Rainer Müller raimue at macports.org
Wed Jan 7 23:55:04 PST 2009


sheldon wrote:
> I'm using apache2 installed and running via macports in /opt/local. I'm using
> php to run a exec() function via a script and would like to set the path apache
> has access to so I can run ImageMagick commands to convert images via php. Since
> ImageMagick was installed via macports too, it's executables are outside the
> default path (which seems to be only /bin:/sbin:/usr/bin:/usr/sbin) and I need
> to be able to set apache's running path. Can Anyone please help?

Try to set PATH including /opt/local/bin in the httpd.conf for the
corresponding vhost (or even global).

See <http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv>

HTH,
Rainer


More information about the macports-users mailing list