Error while running cron.php on hosted installation

On my hosted Nextclout installation we face this error while running cron.php out of a cron job on the hostes server:

www/mydomain.org/ewc/cron.php: cannot open ?php: No such file or directory
www/mydomain.org/ewc/cron.php: 3: Syntax error: word unexpected (expecting ")")

Any ideas? What did I wrong?

You called the script directly and your shell is trying to execute it instead of pasing it to php executing it.

so instead of

www/mydomain.org/ewc/cron.php

you should run

php -f www/mydomain.org/ewc/cron.php

h.t.h.


Much and good luck,
ernolf

Great! Works! Solved!
MNY TNX

1 Like