By Clyde Matava on Tuesday, 06 March 2018
Posted in Technical Issues
Replies 4
Likes 0
Views 746
Votes 0
I am having problems with cronjob setup.

Calling your components cronjob directly with http://pediatricanesthesia.ca/index.php?option=com_easydiscuss&task=cron works with no problem whatsoever. I have changed the $site in the cron.php file.

We are hosted with GoDaddy and I have just spoken to them and they can see nothing wrong with the command.

I set up cronjob for the following command to run every 5 mins:
/usr/local/bin/php -q "/home/clydematava/public_html/index.php?option=com_easydiscuss&task=cron"

Each time it tries to run, I get the following email:
Could not open input file: /home/clydematava/public_html/index.php?option=com_easydiscuss&task=cron
Hi Clyde,

From your command, it looks like you are trying to call the cron php file. Actually this is the cron.php file path for EasyDiscuss(JoomlaFolder/components/com_easydiscuss/cron.php).

If you are planning to use a command to call the url, the url you should use is as follow:
[gist type="php"]
http://pediatricanesthesia.ca/index.php?option=com_easydiscuss&task=cron
[/gist]The command to get the file vs the url is different so you have to consult your host provider about it.
·
Tuesday, 06 March 2018 13:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for your reply.

I changed to the direct file access, bypassing Joomla
/usr/local/bin/php -q "/home/[USER]/public_html/components/com_easydiscuss/cron.php

This worked!

Best,

Adam Becker
·
Tuesday, 06 March 2018 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Clyde, glad that the issue is resolved for you now.
·
Wednesday, 07 March 2018 00:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post