Need to run common joomla/jomsocial cron - Your instructions are wrong

Avatar
  • Answered
Please don't refer me to your cron instructions pages as the instructions there don't appear to work. I, and two or three of inmotion support staff have tried to get a simple cron job (that I have running at two other hosting sites) to run with out success.

Please just edit the standard joomla cron jobs below to work on a inmotion shared server:
1) https://mysite.com/index.php?option=com_jmailalerts&view=emails&tmpl=component&task=processMailAlerts&pkey=1234

2) lynx -source "http://www.domain.com/index.php?option=com_community&task=cron" > /dev/null

3) /usr/local/bin/php -f /home/yourcpanelsitename/public_html/piwik/console core:archive --url=example.org/piwik/ > /home/example/piwik-archive-output.log

NOTE:
1) The three cron scrips above ALL WORK WHEN RUN DIRECTLY IN THE BROWSER, so I know this is not a script issue, it has something to do with the way inmotion has their cron system set up.
2) These are standard scripts. Inmotion provided the last two (they come with standard joomla and piwik installs). The last one is the default cron script that comes with jomsocial.
3) Inmotion has hundreds of copies of these identical scripts running with your customers......somehow.

Please just edit the script so I can just replace my domain and key info, cut and past to get these critical crons to run. Thank you, I have spend over a week with 4 to 5 calls to the support desk any no one seems to know how to get these simple scrips to run correctly. Thanks again....... Desperate CronAddict


Avatar
anonymous
Hello RMS,

I took a close look into it and if I used Lynx as the user agent the request seemed to go through. I checked your lynx cron and I changed the user agent to "Lynx" and it worked just fine from what I saw. What other cron is not working?

Best Regards,
TJ Edens
Avatar
anonymous
Hello RMS,

I'm sorry you found our cron job article to inadequate, however to fix yours that you have provided would be to do the following:

1. lynx -dump -useragent=Joomla_cron "https://mysite.com/index.php?option=com_jmailalerts&view=emails&tmpl=component&task=processMailAlerts&pkey=1234"
2. lynx -dump -useragent=Joomla_cron "http://www.domain.com/index.php?option=com_community&task=cron" > /dev/null
3. /usr/local/bin/php -q /home/yourcpanelsitename/public_html/piwik/console core:archive --url=example.org/piwik/ > /home/example/piwik-archive-output.log

Is this what you were you looking for specifically?

Best Regards,
TJ Edens