title: CutyCapt Linux shell_exec
body: <p>I'm trying to setup CutyCapt on my Ubuntu 10.4 server.</p>
  
  <p>I generate a thumbnail using the following command in SSH:</p>
  
  <pre><code>xvfb-run --server-args="-screen 1, 1280x1200x24" ./CutyCapt --url=http://www.google.dk 
  --out=/var/www/user/data/www/domain.com/test.png --min-width=1280 --min-height=1200
  </code></pre>
  
  <p>... and it's working great!</p>
  
  <p>Though when I run the entire same command from a PHP file using shell_exec I get an error:</p>
  
  <p><em>/usr/bin/xvfb-run: 181: ./CutyCapt: not found</em></p>
  
  <p>Does anyone have an idea what's wrong?</p>
  
  <p>Thanks in advance</p>