By babylon on Sunday, 14 September 2014
Posted in General Issues
Replies 1
Likes 0
Views 821
Votes 0
Hello,

Im trying to figure out what the correct cronjob is to use.

But weird is that these 3 dont work:

lynx -source "http://www.mysite.com/index.php?option=com_easysocial&cron=true" >

/bin/wget -O /dev/null "http://www.mysite.com/index.php?option=com_easysocial&cron=true"

wget -O /dev/null "http://www.mysite.com/index.php?option=com_easysocial&cron=true" >


Every time it shows some error in the mail. With the lynx setup i get : Alert!: Unable to access document.

And the other 2 give also errors...

but now i tried the cronfile direct like..
/home/myaccount/public_html/components/com_easysocial/cron.php	


and result is:
X-Powered-By: PHP/5.3.29
Content-type: text/html

Cronjob processed.


Is this ok or not?
Hello,

It actually depends if your web host implemented a firewall which prevents lynx / wget from accessing the same server. However, the best way to really know why it's throwing those errors is to check with your web hosting provider because we can't provide you with an answer for this

As for running the PHP script via CLI, it does seem to be correct and it should output the "Cronjob Processed" value.
·
Sunday, 14 September 2014 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post