Wkhtmltopdf user permission
===

I can't seem to get wkhtmltopdf to work on a user account

As root user

wkhtmltopdf -V

wkhtmltopdf http://google.com google.pdf

Both the above work


But as a normal user I get an error
wkhtmltopdf -V
wkhtmltopdf: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

Obviously wkhtmltopdf is working and installed correctly as it works for the root user not not for all to user users


I have tried setting permissions

[root@server ~]# chmod 755 /root/wkqt/

[root@server ~]# chmod 755 /root/wkqt/lib/

[root@server ~]# chmod 755 /root/wkhtmltopdf-qt/

[root@server ~]# chmod 755 /root/wkhtmltopdf-qt/lib/

[root@server ~]# chmod 644 /root/wkqt/lib/*so*

[root@server ~]# chmod 644 /root/wkhtmltopdf-qt/lib/*so*

I have also tried adding to visudo

motorconne localhost=/bin/wkhtmltopdf

motorconne localhost=/root/wkhtmltopdf-qt/lib/libQtWebKit.so.4


But still no luck. Any ideas?




