title: 500 Internal Server Error on .py execution
body: <p>I am trying to have a python script execute on the click of an image but whenever the python script gets called it always throws a 500 Internal Server Error? Here is the text from the log </p>
  
  <pre><code>[Sun Feb 15 20:31:04 2015] [error] (2)No such file or directory: exec of '/var/www/forward.py' failed
  [Sun Feb 15 20:31:04 2015] [error] [client 192.168.15.51] Premature end of script headers: forward.py, referer: http://192.168.15.76/Testing.html
  </code></pre>
  
  <p>I don't understand why it is saying <code>Premature end of script header</code>? I can execute a basic python script that just prints an html header or text. The file I am trying to execute just has some basic wiringPi code that executes fine from the sudo python forward.py command?</p>
  
  <p>EDIT</p>
  
  <p>This is the script I'm trying to execute:</p>
  
  <pre><code>#!/usr/bin/python
  
  import time
  
  import wiringpi2 as wiringpi
  
  wiringpi.wiringPiSetupPhys()
  
  wiringpi.pinMode(40, 1)
  
  wiringpi.digitalWrite(40, 1)
  
  time.sleep(2)
  
  wiringpi.digitalWrite(40, 0)
  
  wiringpi.pinMode(40, 0)
  </code></pre>