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.
Here's my 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 "<pre>$output</pre>";
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).
This post: How to install wkhtmltopdf on a linux based (shared hosting) web server didn't help either.
Any help is gladly appreciated.
UPDATE Using an SSH connection I get the following terminal code
$ wkhtmltoimage-i386 google.com google.png
wkhtmltoimage-i386: not found
$ ./wkhtmltoimage-i386 google.com google.png
$ Segmentation Fault
test
` work? Does `xvfb-run --server-args="-screen 0, 1280x1024x24" wkhtmltoimage-i386 --use-xserver http://www.google.com google.pdf` work? After those, go through http://code.google.com/p/wkhtmltopdf/issues/list?q=segfault all of those. Sorry for not giving a real answer :) – Joel Peltonen Nov 13 '12 at 09:41