title: How to upgrade the version of Python used by Apache?
body: <p>On a Red hat box, I upgraded Python from 2.3 to 2.6.4 and changed the symlink to <code>python</code> so when I type in <code>python</code> the 2.6.4 interpreter comes up.</p>
  
  <p>However my .py file works from the command-line, but not in the browser. It seemed like a <code>sys.path</code> issue so I opened the file in a browser and printed out <code>sys.path</code>.</p>
  
  <p>Surprisingly, my <code>sys.path</code> is different when called from a browser than when called from a command-line. Because the paths are all referring to 2.3, I believe Apache is picking up Python 2.3 rather than the new 2.6.4 version I installed. </p>
  
  <p>How do I make Apache use Python 2.6.4?</p>