我已经在一个共享主机上部署了我的Laravel项目。在我的项目中,我使用的是wkhhtmltopdf,它在localhost上运行良好,但没有在活动服务器上工作,并给出了以下错误:
在第336行:退出状态代码'127‘中的/hermes/bosweb26a/b2003/ywh.xorlogics1/client/shisha/invoices/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64:表示出了问题: stderr:"sh: 1: /hermes/bosweb26a/b2003/ywh.xorlogics1/client/shisha/invoices/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 not“命令:/hermes/bosweb26a/b2003/ywh.xorlogics1/client/shisha/invoices/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64-低质量'/tmp/knp_snappy57cecf069e11a3.25644949。html‘'/tmp/knp_snappy57cecf069e1ff3.62352750.pdf’。“
发布于 2016-09-06 15:54:50
Wkhtmltopdf是一个需要安装在操作系统上的模块。我认为模块没有安装在共享主机上。如果您曾经访问过共享主机(例如linux服务器的ssh),请尝试安装wkhtmltopdf,或者在可能的情况下尝试由主机提供商安装它。
编辑
如果不可能在共享主机上安装wkhtmlmodule,唯一的解决方案是切换到虚拟或专用服务器计划。虚拟专用服务器( VPS )是一种很好的选择,价格有时与共享主机几乎相同。
https://stackoverflow.com/questions/39352854
复制相似问题