I'm trying to generate pdfs with Symfony2, KnpSnappyBundle, Wkhtmltopdf on a mutualized OVH server.
I've putted wkhtmltopdf binary in the bin folder of symfony.
In\app\config\parameters.yml :
wkhtmlto.binary: %kernel.root_dir%/../bin/wkhtmltopdf
In \app\config\config.yml :s
knp_snappy:
pdf:
enabled: true
binary: %wkhtmlto.binary%
options: []
With chmod 604 on wkhtmltopdf, I've this message :
The exit status code '126' says something went wrong:
stderr: "sh: /home/procontakq/Configurateur/app/../bin/wkhtmltopdf:
Permission denied
"
stdout: ""
command: /home/procontakq/Configurateur/app/../bin/wkhtmltopdf --lowquality
'/tmp/knp_snappy59cbc7c736b541.46778125.html'
'/tmp/knp_snappy59cbc7c736c0f4.36952821.pdf'.
If I put the wkhtmltopdf binary with 715 access right , I have the following error message :
With chmod 715 on wkhtmltopdf, I've this message :
stderr: "sh: /home/procontakq/Configurateur/app/../bin/wkhtmltopdf: No such
file or directory
"
stdout: ""
command: /home/procontakq/Configurateur/app/../bin/wkhtmltopdf --lowquality
'/tmp/knp_snappy59cbc893b03971.22099815.html'
'/tmp/knp_snappy59cbc893b03c91.27932094.pdf'.