I am getting somewhereā¦
I my crontab I have specified the php version :
-
-
-
-
- php7.1 /xxxxx/xx/xxxxx/xxxxxxxxxx/SuiteCRM/cron.php > /dev/null 2>&1
-
-
-
Now I am commenting on every update line 50 to 53 in cron.php :
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) != ācliā) {
sugar_die(ācron.php is CLI only.ā);
}
If I donāt comment them CRON is not running. (Got the info from here : cron help! (1and1 shared server) - #8 by gunbunnysoulja)
I think itās because I should use the -cli version of my host. like this :
-
-
-
-
- /usr/bin/php7.3-cli /xxxxx/xx/xxxxx/xxxxxxxxxx/SuiteCRM/cron.php > /dev/null 2>&1
-
-
-
As a complete beginner I was thinking just specify the php version before was ok, didnāt know about CLI version.
EDIT :
just saw your answer from here : Need to solve SMTP problem with 1and1 - #25 by pgr
you asked him to use this cron :
- cd /path/to/suitecrm/folder/; usr/bin/php7.1-cli -d date.timezone=āAmerica/New_Yorkā -f /path/to/root/folder/cron.php > /dev/null 2>&1
I am also on a 1&1 shared hosting so maybe I should use this one too ?