Cron setup?

Discussion in 'Troubleshooting' started by thomas, Jan 15, 2016.

  1. thomas

    thomas New Member

    Joined:
    Aug 29, 2006
    Messages:
    23
    The documentation states that cron should be setup with the following link:

    /usr/bin/lynx -source http://yoursite.com/amember/cron

    However, within my site there is no "/cron" directory, but there is a "cron.php".

    Are the instructions incorrect, should the cron point to the PHP file? or continue pointing to the directory that doesn't appear to exist?

    Thanks.
  2. accularian

    accularian Online Macintosh support — aMember Guru.

    Joined:
    Dec 12, 2006
    Messages:
    41
    Hi,
    It's that easy. Just set up a cron job to poll the cron.php page once a day. You will see nothing happen... it's all behind the scenes.
  3. thomas

    thomas New Member

    Joined:
    Aug 29, 2006
    Messages:
    23
    Thanx Dana, i appreciate the response. Yes, i understand that I need the cron, but my only question is should the script end with "/cron" or should it end with "/cron.php"? The AMember documentation says it should end with the folder, but looking in the software directory i only see a PHP file. So which is correct?
  4. accularian

    accularian Online Macintosh support — aMember Guru.

    Joined:
    Dec 12, 2006
    Messages:
    41
    I use cron.php.

    You are actually telling the cron job to go to a web page. http://www.yoursite.com/amember/cron.php. I just checked it and it appears that just http://www.yoursite.com/amember/cron works too but I like to be picky.

    Don't forget, you can set up these cron jobs in your membership area here at amember.com, or through your hosting server cPanel.

    At the top of this fourm page, you can click the 'My Account' link and you will see a button for Cron Jobs. They end theirs with just cron/. You may also test your URL in a browser window, just type it in, hit return and you should get a blank page to come up.

    Also, you should also enable the 'External Cron' check box at Admin>Setup/Configuration>Advanced... 'Use External Cron' in your aMember's installation admin area.

Share This Page