I`m running a cron job daily to check if an invoice has to be created (using dompdf). The PDF should get created and saved in a folder.
So far the cron_script.php gets executed and all Database entries and email sendings get done. The problem is the dompdf library.
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
It must have something to with permission. But Safe_Mode is completly Off (Master and Slave). Thanks for help Toni