Cron job does not seem to execute properly

hosting

#1


I am not sure how to interpret the email output from the CRON jobs. I only know they are not working (Admin panel says so. Read docs here and found no extra info

https://doc.owncloud.org/server/latest/admin_manual/configuration/server/background_jobs_configuration.html#cron

Steps to reproduce

Using Cpanel v6.2 interface enter cron job pointing to
cron.php
with email notification

Expected behaviour

An email from Cpanel stating cron job finished.

Actual behaviour

I am getting the following message in body of email:
/home/user/path/cron.php: line 1: ?php: No such file or directory
/home/user/path/cron.php: line 2: /bin: is a directory
/home/user/path/cron.php: line 3: syntax error near unexpected token `newline'
/home/user/path/cron.php: line 3: ` * @author --------- user@example.com'

Server configuration

Shared host Linux

Web server:

Database:
MariaDB
PHP version:
5.6
ownCloud version: (see ownCloud admin page)
10.0.3
Updated from an older ownCloud or fresh install:
from 9.x

`


#2

Looks to me like you're pointing the cronjob directly to the cron.php instead of calling it via PHP.