which: no xauth in ((null)) xvfb-run: error: xauth command not found
I use xserver and webkitoimage to export a webpage to image. I deployed it to centos server. On this server, I used apache for web server.
To export a page to image we will run command:
/usr/bin/xvfb-run —server-args=”-screen 0, 1280x1024x24” /usr/local/bin/wkhtmltoimage —use-xserver http://localhost/print/voucher/322?voucher=803 /tmp/tmp1369141170.png 2>&1
After apache call an action which have
echo shell_exec(’ /usr/bin/xvfb-run —server-args=”-screen 0, 1280x1024x24” /usr/local/bin/wkhtmltoimage —use-xserver http://localhost/print/voucher/322?voucher=803 /tmp/tmp1369141170.png 2>&1’);
It throw the error: which: no xauth in ((null)) xvfb-run: error: xauth command not found

