wkhtmltopdf拒绝权限 [英] Permission denied with wkhtmltopdf

查看:546
本文介绍了wkhtmltopdf拒绝权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Wkhtmltopdf,执行他"/var/chroot/wkhtmltox-jessie-amd64:权限被拒绝"时出现此错误.我在Google中搜索,但我没有找到该怎么办的方法...权限具有"drwxr-xr-x root root"的权限,然后在Web服务器(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:权限被拒绝 " 标准输出:"

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

你能帮我吗?

推荐答案

在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拒绝权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆