Permission denied with wkhtmltopdf

Viewed 9286

I have installed Wkhtmltopdf and I have this error when I execute him "/var/chroot/wkhtmltox-jessie-amd64: Permission denied". I search in Google but I have not found how to do ... repertory have this permission "drwxr-xr-x root root" and i execute him in web-server (apache) and Symfony.

Error :

The exit status code '126' says something went wrong: stderr: "sh: 1: /var/chroot/wkhtmltox-jessie-amd64: Permission denied " stdout: ""

Can you help me ?

3 Answers

if you use net core or .net, use:

sudo chmod 777 -R <Directorio que contiene el wkhtmltopdf>

the error is caused because the program does not have writing permissions

Related