Results 1 to 3 of 3

Thread: error running cron.php

  1. #1
    ivy.ng is offline Member
    Join Date
    Oct 2007
    Posts
    6

    Default error running cron.php

    We have setup a campaign with a scheduled message. However emails are not sent at the scheduled time.

    We have already setup a cron job like this :
    * * * * * cd /var/website/sugarcrm/html; php -f cron.php >> /tmp/cronjob.log 2>&1

    Nothing happen! Then we try running the following command directly in Linux:
    php -f /var/website/sugarcrm/html/cron.php

    It shows the following error:

    PHP Warning: require_once(config.php): failed to open stream: No such file or directory in /var/website/sugarcrm/html/include/entryPoint.php on line 76
    PHP Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/website/sugarcrm/html/include/entryPoint.php on line 76


    How to fix this problem?

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: error running cron.php

    Quote Originally Posted by ivy.ng
    We have setup a campaign with a scheduled message. However emails are not sent at the scheduled time.

    We have already setup a cron job like this :
    * * * * * cd /var/website/sugarcrm/html; php -f cron.php >> /tmp/cronjob.log 2>&1
    Try fully qualifying the path to php in your cron job. Do you see any output in /tmp/cronjob.log?


    Quote Originally Posted by ivy.ng
    Nothing happen! Then we try running the following command directly in Linux:
    php -f /var/website/sugarcrm/html/cron.php

    It shows the following error:

    PHP Warning: require_once(config.php): failed to open stream: No such file or directory in /var/website/sugarcrm/html/include/entryPoint.php on line 76
    PHP Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/website/sugarcrm/html/include/entryPoint.php on line 76


    How to fix this problem?
    I suspect the errors you are seeing are because you did not first change directory into /var/website/sugarcrm/html before running this job.

    Hope this helps.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    ivy.ng is offline Member
    Join Date
    Oct 2007
    Posts
    6

    Default Re: error running cron.php

    Thanks for your help. I have resolved this problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 2007-04-20, 07:30 PM
  2. cron.php not running as expected
    By cenforsberg in forum Help
    Replies: 1
    Last Post: 2006-08-24, 04:44 PM
  3. Replies: 2
    Last Post: 2006-07-28, 11:50 AM
  4. cron.php bugs
    By jasoneisen in forum Help
    Replies: 3
    Last Post: 2006-03-07, 06:45 PM
  5. Replies: 1
    Last Post: 2006-01-10, 11:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •