wkhtmltopdf
을 사용자 계정에서 작동시키지 못하는 것 같습니다. 루트 사용자로서Wkhtmltopdf 사용자 권한
:
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
가 작동하고 있지만 모든 사용자에 대한 루트 사용자에 대한 작동하기 때문에, 제대로 설치.
내가 시도 설정 권한 :
[[email protected] ~]# chmod 755 /root/wkqt/
[[email protected] ~]# chmod 755 /root/wkqt/lib/
[[email protected] ~]# chmod 755 /root/wkhtmltopdf-qt/
[[email protected] ~]# chmod 755 /root/wkhtmltopdf-qt/lib/
[[email protected] ~]# chmod 644 /root/wkqt/lib/*so*
[[email protected] ~]# chmod 644 /root/wkhtmltopdf-qt/lib/*so*
나는 또한 추가 시도 visudo
에 :
motorconne localhost=/bin/wkhtmltopdf
motorconne localhost=/root/wkhtmltopdf-qt/lib/libQtWebKit.so.4
하지만 여전히 행운. 어떤 아이디어?
루트로 설치하셨습니까? –
예 루트로 설치 되었음 – garethhallnz
사용하려는 사용자로 설치해보십시오 –