title: CutyCapt with php exec
body: <p>I'am using CutyCapt on my CentOS.
  It works fine via terminal but it doesn't work via php exec function.
  I've started xvfb by command in terminal:</p>
  
  <pre><code>Xvfb :99 -screen 0 1024x768x24
  </code></pre>
  
  <p>And I'am trying to do a screenshot by php script:</p>
  
  <pre><code>exec("DISPLAY=:99 /path/to/cutycapt --url=&lt;some url&gt; --out=&lt;path/to/output&gt;");
  </code></pre>
  
  <p>It doesn't show any errors but there is no output file (output directory has chmod 777)
  Can somebody help me?</p>
  
  <p>Thanks</p>
  
  <p><strong>UPD:</strong>
  Maybe it is better somehow  to allow executing of Xvfb by Apache?</p>