title: FFmpeg permission denied CENTOS - PhpVideoToolKit
body: <p>I'm try to execute this PHP code </p>
  
  <p><code>exec("/root/bin/ffmpeg -version 2&gt;&amp;1", $output);
  print_r($output);</code></p>
  
  <p>But always the output return permission denied</p>
  
  <p><code>Array ( [0] =&gt; sh: /root/bin/ffmpeg: Permission denied )</code> </p>
  
  <p>and the output  from library PhpVideoToolKit</p>
  
  <p><code>sh: /root/bin/ffmpeg: Permission denied</code></p>
  
  <p>how can i give permission for execute to my apache service? i'm used  CENTOS  </p>
  
  <ul>
  <li><p><a href="http://i.stack.imgur.com/5YfoG.png" rel="nofollow">Here an image of the error</a></p></li>
  <li><p><a href="http://i.stack.imgur.com/XRE0V.png" rel="nofollow">here an image of the return exec command</a></p></li>
  </ul>