laburke Posted June 22, 2007 Share Posted June 22, 2007 I have membership software (aMember Pro) installed on one of my sites, and I need to set up a cron job to process credit cards. This is what aMember Pro says to use for the command when setting up a cron job. /usr/bin/lynx -source http://yoursite.com/amember/cron.php and if that doesn't work, to try these: /usr/bin/curl -s http://yoursite.com/amember/cron.php /usr/bin/wget -o/dev/null -O- http://yoursite.com/amember/cron.php /usr/local/bin/lynx -source http://yoursite.com/amember/cron.php /usr/local/bin/curl -s http://yoursite.com/amember/cron.php /usr/local/bin/wget -o/dev/null -O- http://yoursite.com/amember/cron.php However, here on the TCH forums, I find this is what should be used: /usr/bin/php -q /home/userid/public_html/path-to-file-to-run Well, I've tried them all, and nothing works. With some, I get this error: /bin/sh: /usr/bin/lynx: Permission denied and with some I get this: /bin/sh: home/userid/public_html/amember/cron.php: No such file or directory I've double-checked that cron.php is definitely in /amember/. I don't know what I'm doing - can someone help, please? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted June 22, 2007 Share Posted June 22, 2007 You cannot run lynx, wget or curl from cron for they have been disabled on the servers. You will have to find another way to run those jobs. You can try: >/usr/bin/php -q /home/userid/public_html/amember/cron.php Quote Link to comment Share on other sites More sharing options...
laburke Posted June 23, 2007 Author Share Posted June 23, 2007 You cannot run lynx, wget or curl from cron for they have been disabled on the servers. You will have to find another way to run those jobs. You can try: >/usr/bin/php -q /home/userid/public_html/amember/cron.php Hi Bruce, thanks for replying. Yes, that is one of the ones I tried, and that's when I get this error: /bin/sh: home/userid/public_html/amember/cron.php: No such file or directory Do you know what else it could be? Quote Link to comment Share on other sites More sharing options...
GvilleRick Posted June 23, 2007 Share Posted June 23, 2007 You are using your cpanel username where it says userid, correct? Quote Link to comment Share on other sites More sharing options...
laburke Posted June 23, 2007 Author Share Posted June 23, 2007 You are using your cpanel username where it says userid, correct? Yes - Oh, how I wish it were that simple! Thanks! Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted June 23, 2007 Share Posted June 23, 2007 Does that mean you have it working? Quote Link to comment Share on other sites More sharing options...
GvilleRick Posted June 23, 2007 Share Posted June 23, 2007 If the file is in the amember folder and the amember folder is in public_html then the cron should work. It is difficult for folks here to help determine what could be happening without the domain. Quote Link to comment Share on other sites More sharing options...
laburke Posted June 23, 2007 Author Share Posted June 23, 2007 (edited) Does that mean you have it working? Oops, no, sorry, I guess my comment was a little confusing If the file is in the amember folder and the amember folder is in public_html then the cron should work. It is difficult for folks here to help determine what could be happening without the domain. I'm sorry, I always forget to include the domain when I ask questions. It's Ontonagon Herald but you would need more info than that to be able to tell, wouldn't you? I admit to being a little confused. Okay, a lot. Anyway, let me know if I should open a ticket, or if I should just buzz off Edited June 23, 2007 by laburke Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted June 23, 2007 Share Posted June 23, 2007 /bin/sh: home/userid/public_html/amember/cron.php: No such file or directory This error generally indicates that it cannot locate the file "cron.php" in the path specified. So without knowing your userid (and I don't recommend posting it here in the forums). Open a ticket and the techs can take a look. Quote Link to comment Share on other sites More sharing options...
MikeJ Posted June 26, 2007 Share Posted June 26, 2007 /bin/sh: home/userid/public_html/amember/cron.php: No such file or directory You are missing the leading "/". It should be "/usr/bin/php -q /home/userid/public_html/amember/cron.php", but I think the first one got left out. Quote Link to comment Share on other sites More sharing options...
mythusmage Posted July 22, 2007 Share Posted July 22, 2007 I just installed Drupal on mythusmage.com in the root directory, Drupal needs a cron-job for certain functions. The command would be... The (partial) file path is, /public_html/cron.php in case you're wondering. Quote Link to comment Share on other sites More sharing options...
GvilleRick Posted July 22, 2007 Share Posted July 22, 2007 It should be /usr/bin/php -q /home/cpanelusername/public_html/cron.php Quote Link to comment Share on other sites More sharing options...
laburke Posted July 22, 2007 Author Share Posted July 22, 2007 Oops, I just realized when I got e-mail notification of a reply on this topic that I had never thanked everyone for their help with my issue. As far as I know, it's been working fine, so thanks! Sorry about the delay. Quote Link to comment Share on other sites More sharing options...
mythusmage Posted July 22, 2007 Share Posted July 22, 2007 It should be /usr/bin/php -q /home/cpanelusername/public_html/cron.php Ah, clarity arises in this one's mind. Much thanks. I'll pass word on to the Drupal forums. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.