我已经在共享主机上部署了我的Laravel项目。在我的项目我使用wkhhtmltopdf这是工作在本地主机上正常,但工作不活的服务器上,并给予此错误:wkhtmltopdf不支持在线共享主机
RuntimeException in AbstractGenerator.php line 336: The exit status code '127' says something went wrong: stderr: "sh: 1: /hermes/bosweb26a/b2003/ywh.xorlogics1/client/shisha/invoices/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64: not found " stdout: "" command: /hermes/bosweb26a/b2003/ywh.xorlogics1/client/shisha/invoices/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 --lowquality '/tmp/knp_snappy57cecf069e11a3.25644949.html' '/tmp/knp_snappy57cecf069e1ff3.62352750.pdf'. "
您确定共享主机支持wkhtmltopdf,并且安装了所有依赖关系(例如libXrender)吗? – iainn
因为我们只能通过控制面板访问共享主机,所以我们不能从ssh安装这个软件包。我们也与他们讨论过这个问题,但他们不允许安装,因为这是共享主机。 –
获取VPS而不是共享主机。 – jurgemaister