PATH environment variable

PATH environment variable

Posted by: jablko
Posted on: 2009-05-12 16:19:00

We need newer versions of some executables, so I compiled them and dropped them in /home/qubitadmin/bin

I added to /home/qubitadmin/.bashrc,

PATH="$HOME/bin:$PATH"

This works great for login with SSH,

qubitadmin@qubitron:~$ identify -version
Version: ImageMagick 6.5.2-3 2009-05-08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

qubitadmin@qubitron:~$

- but when Apache runs scripts, they still run the old executables, because I haven't updated the PATH environment variable for when Apache runs scripts, e.g. http://ica-atom.org/cgi-bin/test.cgi

Without editing the scripts, how can I run the new executables when accessed through Apache?

Re: PATH environment variable

Posted by: sXi
Posted on: 2009-05-12 21:30:00

You may need to set the full path to the app within your script.




How To Install PHP.INI / ionCube on DreamHost

Tags: test cgienvironment variableatomscriptsapache