title: From PHP a Simple Linux Script to return "Hello World"
body: <p>Okay, happy to accept down votes to get to the bottom of my problem.   I am brand new to Linux but have hosted my PHP based site on a Linux cloud server and need to run a FFMPEG script to convert a video.  Under windows I have the full application working but under Linux I can't seem to get a basic script working and was wondering if someone can point me in the right direction.   I have read the myriad posts on this, for example, <a href="https://stackoverflow.com/questions/11052162/run-bash-command-from-php/11052453#11052453">Run bash Command from PHP</a> but it does not help me get to the bottom of it.</p>
  
  <p>Here is what I have so far.</p>
  
  <pre><code>$old_path = getcwd();
  chdir('videos/');
  $new_path = getcwd();
  echo('newpath '.$new_path); &lt;-- this outputs 'old_path/videos'
  $temp=  shell_exec('./testScript.sh');
  echo ($temp) &lt;-- produces nothing
  </code></pre>
  
  <p>Test script <strong><em>testScript.sh</em></strong> is in the video directory and is simply</p>
  
  <pre><code>echo "hello world"
  </code></pre>
  
  <p>Thanks...</p>