symfony - wkhtmltopdf 权限被拒绝

标签 symfony debian apache2 wkhtmltopdf

我已经安装了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/

相关文章:

Symfony2 Assetic 生成指向 CDN 的 URL

mysql - 在 Symfony 中打印 Sql 查询

go - 在 Go 编程中使用 golang-Debian 包

mysql - Apache2 无缘无故地给出 403 Forbidden

php - 无法在 Symfony2 应用程序中使用 Sahi/Mink/Behat 上传文件

mysql - 表结构变更时的Doctrine和Mysql数据迁移

linux - 未读取 openldap ACL

linux - 有没有办法让 bash 脚本处理使用 write 命令发送给它的消息

python - WSGI在应用程序的同一目录中找不到文件

ssl - JBoss 7 和 Apache SSL