Problem with cron running on a web server

:frowning: Good Morning,

I have installed the Cron String in the Cron App on the web site but for some reason it still does not run.

Here is the link Sugarcrm created:

          • cd /home5/superis3/public_html/suitecrm/max; php -f cron.php > /dev/null 2>&1
            

Does any think of a way to fix the problem.

If you need I can get you access to the website data fields if you need to look around.

Thanks,

Dave

You should post the relevant lines from your php error log, to find out whatโ€™s the cause exactly.
One very common reason is because the php CLI (command line environment) - which is what this cron line in fact is interacting through - is running with possibly different environment/settings, missing some necessary linux security permissons/ownership, compared to the php web environment/settings (typically php-cgi or php-fgci).
But you should post your php error log lines just to see exactly whatโ€™s the reason for the error.

Good Morning,

Well it looks like I might have a couple of errors:

Is it possible you could look at the file and make some suggestions on how to repair the cron.php file.

Dave

Here is the error-log.txt

[12-Oct-2014 19:00:04 America/Denver] PHP Fatal error:  require_once(): Failed opening required 'include/entryPoint.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home5/superis3/public_html/suitecrm/max/cron.php on line 45

Is your web root folder public_html/suitecrm or public_html/suitecrm/max ?

Check the file exists public_html/suitecem/max/include/entryPoint.php

SuiteCRM is installed in the following directory:

public_html/suitecrm/max

Dave

My workaround to this cron issue:

  1. Edit your cron line to be :
curl http://www.yourserver.com/suitecrm/max/cron.php >/dev/null 2>&1
  1. Edit public_html/suitecrm/max/cronp.php.
    Comment out line 46 by putting two forward slashes in front of it :
 // sugar_die("cron.php is CLI only.");
  1. Save and done. It should work fine.
  2. Post back your results.

Sorry been out of town for a weeding. I will try that.

Dave