title: Tesseract exec not working
body: <p>I have been trying to work this out for a couple days now and can't crack it.</p>
  
  <p>I'm trying to use php to echo the result of tesseract.</p>
  
  <p>After everything I've researched and tried, I feel like the below code should work.</p>
  
  <pre><code>&lt;?php
  
  echo '&lt;pre&gt;';
  echo exec('/usr/local/bin/tesseract /home/username/www/ocr/images/hello.png result');
  echo '&lt;/pre&gt;';
  
  ?&gt;
  </code></pre>
  
  <p>The command runs fine via SSH and if I change the above to suit <code>ifconfig</code> it works fine.</p>
  
  <p>Any ideas to get this working?</p>