我每天都在运行一个cron作业来检查是否必须创建发票(使用dompdf)。 PDF应该被创建并保存在一个文件夹中。
到目前为止,执行了cron_script.php并完成了所有数据库条目和电子邮件发送。 问题是dompdf库。
PHP Warning: realpath(): SAFE MODE Restriction in effect. The script whose uid is 10000 is not allowed to access /var/www/vhosts/domain.com owned by uid 0 in /var/www/vhosts/domain.com/dompdf/include/functions.inc.php on line 135
PHP Warning: file_put_contents(): SAFE MODE Restriction in effect. The script whose uid is 10000 is not allowed to access /var/www/vhosts/domain.com/files owned by uid 33 in /var/www/vhosts/domain.com/cron_script.php on line 162
PHP Warning: file_put_contents(/var/www/vhosts/domain.com/files/invoice_2145.pdf): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/cron_script.php on line 162
必须获得许可。但Safe_Mode完全关闭(主和从)。 感谢帮助 托尼