Results 1 to 2 of 2

Thread: Bitnami LAMPstack - cron not working

  1. #1
    faisalsadaf is offline Junior Member
    Join Date
    Jan 2010
    Posts
    8

    Default Bitnami LAMPstack - cron not working

    In SugarCRM, I have created a campaign, scheduled emails to be sent. Went to system shell, edited sudo cron to add the following command provided by SugarCRM:

    * * * * cd /home/myhomedir/lampstack-1.2-3/apps/sugarcrm/htdocs; php -f cron.php > /dev/null 2>&1
    However, when i monitor syslog, i get the following error message:

    (CRON) error (grandchild #3133 failed with exit status 127)

    So I open a shell prompt, go to the sugarcrm/htdocs directory, and type:

    which php

    System says php not installed, and prompts me to install php. Well, I know that php is installed as part of LAMPstack, so what gives?

    Does anyone have this issue? I just want my cron job to execute.

    Thanks
    Faisal

    System details:
    - Ubuntu 10.10 64bit VMWare VM
    - 1GB RAM, 100GB drive space
    - LAMPstack with SugarCRM, updated 6.1.2
    - Alfresco installed as well

  2. #2
    faisalsadaf is offline Junior Member
    Join Date
    Jan 2010
    Posts
    8

    Default Re: Bitnami LAMPstack - cron not working

    So, after a couple of hours of trying to figure this out (I'm a newbie), I found a forum thread that talks about invoking the cron.php from inside lampstack shell. Here's the commands that I typed:

    cd /home/myhomedir/lampstack-1.2-3/
    ./use_lampstack
    php -f /apps/sugarcrm/htdocs/cron.php

    With the above three commands, I was able to test the script manually.

    I am still challenged on how to add this to cron. Within the lampstack shell, I did this:

    - crontab -e
    - added a line as follows:
    - * * * * * cd /home/mfansari/lampstack-1.2-3/; ./use_lampstack; php -f /apps/sugarcrm/htdocs/cron.php > /dev/null 2>&1

    Kept monitoring the syslog, and now getting this error:

    (CRON) error (grandchild #3577 failed with exit status 127)

    Apparently cron is not able to locate the script. Not sure if its not able to find ./use_lampstack or php itself.

    Any ideas?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. cron job not working
    By seanpeace in forum Help
    Replies: 9
    Last Post: 2012-02-06, 07:52 AM
  2. Scheduler / cron.php not working....
    By johntaylor444 in forum Help
    Replies: 1
    Last Post: 2011-01-27, 11:08 AM
  3. ODBC connection problem to MySql with Bitnami
    By johnprogers in forum Help
    Replies: 5
    Last Post: 2010-05-12, 12:45 PM
  4. How to update the LAMPstack?
    By yusufm in forum Downloads
    Replies: 1
    Last Post: 2006-05-25, 07:32 AM
  5. cron job not working
    By nkendrick in forum General Discussion
    Replies: 5
    Last Post: 2006-02-03, 09:20 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
  •