Setting up Cron Job - Hostmonster/Bluehost
  • ProfessorCPUProfessorCPU February 7

    I currently am using simple invoices. But no matter what I do I can not seem to figure out how to setup the cron job in a bluehost account. I also have a hostmonster account as well. Which is basically the same thing.

    I have contacted them and asked them to help me since december 2011. They haven't been much help at all.
    I know everything is setup correctly (except the cron job) because if I manually go to the api-cron link it processes the recurring invoices for the day.

    Any help would be much appreciated!!

    Thanks,
    Chris

  • ProfessorCPUProfessorCPU February 9

    Any info anyone would have would be great. The only answer I can get from the hostmonster support is that it needs to point to a php file. They say it will not work pointing to api-cron

    Is there any other way I can do this?

  • modirmodir February 10

    I think what they want to tell you is that you have to point to the local file and not to the url. Or something like this.

  • ProfessorCPUProfessorCPU February 10

    I have tried to point to the Local API-CRON path as well as the url. But neither seem to work. I have never set up a cron before so I am hoping someone can explain to me exactly the command I should place into the cronjob.

    I currently have cron jobs in my list that are currently working... for other thing dealing with my website. But when I try to use the same command pointing to API-CRON it does not work.

    Here's an example of a working cron I have in my account:
    /ramdisk/bin/php5 -q /home5/userdir/public_html/inc/cronjob_clean.php

    But it points directly to a php file. Is there something different I am supposed to do to point it to api-cron? Or is there an actual php I can point to instead of api-cron?

    Thanks,
    Chris

  • Here is their help for crons - https://my.bluehost.com/cgi/help/cron

    Have you tried it as a command line on your hosted account? If you can make a command work from the commandline, then it will work as a cron. If you cannot make it work from the commandline it won't work as a cron.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories