2

wkhtmltopdfユーザーアカウントで作業することができないようです。

root ユーザーとして:

wkhtmltopdf -V
wkhtmltopdf http://google.com google.pdf

上記の両方が機能します。しかし、通常のユーザーとしてエラーが発生します。

wkhtmltopdf -V
wkhtmltopdf: error while loading shared libraries: libQtWebKit.so.4: cannot open shared     object file: No such file or directory

明らかにwkhtmltopdf、root ユーザーに対しては機能しますが、すべてのユーザーに対して機能するわけではないため、正常に機能し、インストールされています。

権限を設定しようとしました:

[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*

私も追加しようとしましたvisudo

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

しかし、まだ運がありません。何か案は?

4

1 に答える 1