I just installed Nextcloud on my 'nix shared hosting server. I managed get to clear all the warnings. PHP is dialed in, security is good, caching set up. Just a couple of problems remain. I created a cron job in my cpanel (see https://ibb.co/jLnoxG). The output of the command is sent to me by email. At first the result was
{âstatusâ-âsuccessâ}
But as soon as I changed the âBackground Jobsâ option (in Admin panel) to âCronâ (which Iâm supposed to right?) then the output changed to this:
{âdataâ:{âmessageâ:âBackgroundjobs are using system cron!â},âstatusâ:âerrorâ}
Also, since I set cron, Iâve been getting errors in my Nextcloud log. They say:
Error PHP Undefined index: SCRIPT_FILENAME at XXXXXXXX/public_html/cloud/lib/base.php#141
Error PHP Undefined index: SCRIPT_NAME at XXXXXXXXXX/public_html/cloud/lib/private/AppFramework /Http/Request.php#719
What is going on?
base.php, Line 141:
âSCRIPT_FILENAMEâ => $_SERVER[âSCRIPT_FILENAMEâ],
Request.php, Line 719:
$scriptName = $this->server[âSCRIPT_NAMEâ];
You can try if you have a different php cli-binary that works (especially on hosting servers, they sometimes have different settings):
https://forum.owncloud.org/viewtopic.php?f=38&t=37458#p118971
There was a report on the bug tracker:
1 Like
I changed the cron command from âphp -f /path/cron.phpâ to " /usr/local/bin/php -f /path/cron.php ".
It seems to have done the trick. Thanks for pointing me in the right direction.
1 Like