title: PHP Tesseract SHELL_EXEC not working but working via Terminal
body: <p>I just wonder why I can't execute a tesseract command via PHP. The following command executed via terminal (my computer has got Ubuntu)</p>
  <pre><code>tesseract sample1.png reading
  </code></pre>
  <p>is working fine. While</p>
  <pre><code>error_reporting(E_ERROR);
  ini_set('display_errors', TRUE);
  ini_set('display_startup_errors', TRUE);
  
  $file = shell_exec('tesseract sample1.png reading');
  echo &quot;&lt;pre&gt;$file&lt;/pre&gt;&quot;;
  
  </code></pre>
  <p>isn't working at all. Any help is appreciated.</p>