I use KnpSnappyBundle to generate PDF in my Symfony2 application. It works fine on my local wamp with the configuration :
binary: "\"C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf.exe\""
I trying with the application, but with a folder with wkhtmltox at the root with the configuration :
binary: %kernel.root_dir%/../wkhtmltox/bin/wkhtmltopdf
It doesn't work. It get the following message :
The exit status code '127' says something went wrong:
stderr: "sh: wkhtmltox/bin/wkhtmltopdf: No such file or directory
"
stdout: ""
command: wkhtmltox/bin/wkhtmltopdf --lowquality
'/tmp/knp_snappy595a4fa89a6676.24945632.html'
'/tmp/knp_snappy595a4fa89a6a59.72414975.pdf'.
I'm using a OVH's webhosting server.