PATH environment variable

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 © 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?

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost