我已经安装了Wkhtmltopdf,当我执行他“/var/chroot/wkhtmltox-jessie-amd64:权限被拒绝”时出现此错误。我在 Google 中搜索,但我还没有找到该怎么做...剧目有这个权限“drwxr-xr-x root root”,我在网络服务器(apache)和 Symfony 中执行他。
错误:
The exit status code '126' says something went wrong: stderr: "sh: 1: /var/chroot/wkhtmltox-jessie-amd64: Permission denied " stdout: ""
你能帮我吗?
最佳答案
如果您使用 net core 或 .net,请使用:
sudo chmod 777 -R <Directorio que contiene el wkhtmltopdf>
该错误是因为程序没有写入权限造成的
关于symfony - wkhtmltopdf 权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36065028/