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?