Error CRON

Re: Error CRON

by Ken Task -
Number of replies: 0
Picture of Particularly helpful Moodlers

In your screen shot:

the 'sudo -u web' ... line ... there is a .php-cron-starter shown.

What is .php-cron-starter? A 'dot' at the beginning of that indicates it's a hidden file? or directory?

And at the very end of screen shot it shows
web7_corsi_cron.sh is what failed.
So what is contained in web7_corsi_cron.sh script?

Howard suggested usually caused by having the wrong version of PHP (command line version).
And asked you to try the command php -v as test to see if your system is finding php-cli

I asked you to run another command as well in efforts to find php-cli for PHP.

which php

that would show the path to the php executables found on your system (you could have multiples).   A command issued from the prompt or a sh script would use the first one found IF using 'php somephpfile.php' from the command line.

'SoS', Ken


Average of ratings: Useful (1)