Skip to content

Problem with cron job on cpanel

edited August 2016 in Troubleshooting

Hi, i have done everything you describe in your cron job directions file but i still can't schedule a send. I get the blue message.

My cron setup is as follows:

/usr/bin/php -q /home/km0sch0/public_html/mailmanager/autoresponders.php > /dev/null 2>&1
php /home/km0sch0/public_html/mailmanager/scheduled.php > /dev/null 2>&1

any ideas? PHP version is 5.6.20

Comments

  • Hi,

    Please ensure that the cron job for scheduled.php is set to run "every 5 mins" as per the official cron job setup instructions, not anything more or anything less than that.

    You may also want to check with your hosting support if your cron job is setup correctly.

    Thanks.

    Best regards,
    Ben

  • Hi,

    Try changing your cron job command to:

    /usr/bin/php /home/km0sch0/public_html/mailmanager/scheduled.php

    instead of:

    php /home/km0sch0/public_html/mailmanager/scheduled.php

    Best regards,
    Ben

  • did this...still nothing!

  • Please contact your hosting support to check your cron job.

  • edited August 2016

    Hi, i've contacted my hosting company and they said they had to change the path of php to /usr/local/bin/php

  • now it works

This discussion has been closed.