Skip to content

Cron job on Dreamhost

edited November 2014 in Troubleshooting

I know this has been posted previously but unfortunately I am not having any resolution and need to ask for everyone's help yet again...

I have setup a campaign and want to ensure a CRON job is setup as the email list will use up the entire SES quota and need to be automatically restarted at some stage.

After setting up the below CRON command in Dreamhost and confirming that the path to PHP is accesible with Dreamhost support I am still getting the warning on my campaign page that CRON is not setup. I have waited quite a few hours to ensure it is not lagging.

/usr/local/php54/bin/php /home/dilbai/sendy.hidillon.com/scheduled.php > /dev/null 2>&1

CRON warning in Sendy

https://drive.google.com/file/d/0BxLQVlXac6W8SWwyc09xcEU0TGs/view?usp=sharing

CRON setup in Dreamhost

https://drive.google.com/file/d/0BxLQVlXac6W8SjJESXJJcnk1Ukk/view?usp=sharing

Comments

  • Hi,

    That means your cron job aren't working. Try using curl version of the cron job command instead:

    curl -L -s http://sendy.hidillon.com > /dev/null 2>&1

    Best regards,
    Ben

  • Hi Ben,

    Strangely this is the command that ended up working on Dreamhost:

    /usr/local/php54/bin/php /home/sendyshell/sendy.hidillon.com/scheduled.php > /dev/null 2>&1
    

    Should be noted that "/sendyshell/" is not the directory where the app is installed but is the user directory that has shell access.

    Do you know if the user running the CRON must also be the user directory where the app is installed?

    DB

  • Do you know if the user running the CRON must also be the user directory where the app is installed?

    I don't think it matters though.

  • Cool.

    Thanks Ben.

This discussion has been closed.