title: Bringing wkhtmltoimage to work (Segmentation fault)
body: <p>I spent the last three days trying to bring wkhtmltoimage to work on my shared webspace. I do not have root access. Hence, the wkhtmltoimage is in directly in my htdocs directory.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>shell_exec('wget http://wkhtmltopdf.googlecode.com/files/wkhtmltoimage-0.11.0_rc1-static-  i386.tar.bz2');
  
  shell_exec('tar -xvf wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2');
  
  $output = shell_exec('wkhtmltoimage-i386 google.com google.png');
  echo "&lt;pre&gt;$output&lt;/pre&gt;";
  </code></pre>
  
  <p>The first two shell_exec's work fine, but I'm unable to make a screenshot. Any ideas? (Have tried omitting the "i386" as well as putting an "./" before the wkthmltoimage, no success).</p>
  
  <p>This post: <a href="https://stackoverflow.com/questions/2273534/how-to-install-wkhtmltopdf-on-a-linux-based-web-server">How to install wkhtmltopdf on a linux based (shared hosting) web server</a> didn't help either.</p>
  
  <p>Any help is gladly appreciated. </p>
  
  <p><strong>UPDATE</strong> Using an SSH connection I get the following terminal code</p>
  
  <pre><code>$ wkhtmltoimage-i386 google.com google.png
  wkhtmltoimage-i386: not found
  $ ./wkhtmltoimage-i386 google.com google.png
  $ Segmentation Fault
  </code></pre>