title: Can't execute a Java jar file via PHP on Ubuntu
body: <p>Here is my PHP code:</p>
  
  <pre><code>&lt;?php
  exec('java -jar ~/src/epubcheck-*/epubcheck-*.jar -out /var/www/epubcheck-outputs/output.xml /var/www/AChristmasCarol.epub');
  </code></pre>
  
  <p>When I try the command in the terminal it works... But in PHP it does not.</p>
  
  <p>Also I don't even get the java version. But I do get to see the "hey..." so some commands do work, others don't.</p>
  
  <p>I am using NGiNX has my server.</p>