title: PHP: exec of python Script not working on the Raspberry PI 2
body: <p>My problem is that I've got a python Script in the Webspace folder of my RaspPI my PHP Script should call but it doesn't.
  I already set the python file permission to everyone.
  But still i can't get this to work.
  I tried several solutions but none of them helped me.
  Here's what I did so far:</p>
  
  <p><strong>index.htm</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;form action="photo.php" method="post"&gt;
  
  &lt;input type="submit" value="Take photo" name="test"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>photo.php</strong>
      
  
  <pre><code>    if(isset($_POST['test']))
      {
  
      shell_exec('/var/www/photoburst.py');
  
  
  
      echo'photo saved';
  
  
  
      }
      else 
      {
      echo'Error.';
      }
      ?&gt;
  </code></pre>
  
  <p>I cant find any errors so please help me fix this.</p>
  
  <p>Thanks!</p>