问题描述
我已经安装了 Wkhtmltopdf,当我执行他时出现这个错误/var/chroot/wkhtmltox-jessie-amd64:权限被拒绝".我在谷歌搜索,但我还没有找到怎么做......剧目有这个权限drwxr-xr-x root root",我在网络服务器(apache)和Symfony中执行他.
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.
错误:
退出状态代码126"表示出现问题:stderr: "sh: 1:/var/chroot/wkhtmltox-jessie-amd64: 权限被拒绝"标准输出:""
你能帮我吗?
推荐答案
在 linux 或 mac 用户目录中的自定义文件夹上安装库 Wkhtmltopdf 保存此路径并在您的配置中设置
Install library Wkhtmltopdf on custom folder in the user directory for linux or mac save this route and set in your config
此解决方案适用于生产服务器
This solution working in production server
这个错误是因为var和opt文件夹如果不是root用户就不能写任何内容
This error is because var and opt folder you can't write any content if not root user
这篇关于wkhtmltopdf 权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!