How to install wkhtmltopdf on a linux based (shared hosting) web server

后端 未结 11 1735
刺人心
刺人心 2020-11-30 17:58

I have tried in all ways to get wkhtmltopdf installed on our web server but unfortunately it is not getting installed. I cannot access user/bin folder as st

11条回答
  •  时光说笑
    2020-11-30 18:59

    Shared hosting no ssh or shell access?

    Here is how i did it;

    1. Visit https://wkhtmltopdf.org/downloads.html and download the appropriate stable release for Linux. For my case I chose 32-bit which is wkhtmltox-0.12.4_linux-generic-i386.tar.xz
    2. Unzip to a folder on your local drive.
    3. Upload the folder to public_html (or whichever location fits your need) using an FTP program just like any other file(s)
    4. Change the binary paths in snappy.php file to point the appropriate files in the folder you just uploaded. Bingo! there you have it. You should be able to generate PDF files.

提交回复
热议问题