Problem with cron

I have installed suitecrm 7.10 on a shared hosting (to folder crm) and I am trying to config the cron.
I have changed the permissions of cron.php, from 0644 to 0755

I use this command:

/home/mydomain/public_html/crm/cron.php

that’s what a get as a result:

/home/mydomain/public_html/crm/cron.php: line 1: ?php: No such file or directory
/home/mydomain/public_html/crm/cron.php: line 2: syntax error near unexpected token 'sugarEntry'' /home/mydomain/public_html/crm/cron.php: line 2: if(!defined(‘sugarEntry’))define(‘sugarEntry’, true);’

whats’s wrong? what should I do?

You’re not supposed to run cron.php yourself, you tell the Linux “cron” to run it.

See Admin / Schedulers, bottom of screen, for instructions.

On shared hostings sometimes you need to do it from your CPanel, look for a section on “cron” or “crontab”

that’s that I have done but it doesn’t work.

I tried easycron, as mike201 wrote and works fine.
thanks

cron will work fine if you set it up correctly :slight_smile:

which is normally just a question of using the correct user name, and getting a couple of paths right.

I can’t recommend using an external server on the internet simply to run a command on your own server, what sense does that make?

I see lots of people opt for that, ok, if it gets the job done, it’s their choice… but a curious choice, in my perspective…