By Michael Durrant on Friday, 30 September 2016
Posted in Technical Issues
Replies 8
Likes 0
Views 242
Votes 0
Hello,
After hours of trial and error I found a cronjob script here that works with Namecheap. It was for Host Gator.

/usr/bin/wget -O /dev/null "http://moveitsigns.com/index.php?option=com_easyblog&task=cron";

There was mention of a host in one ticket that didn't work with wget but script wasn't put into the reply. Will you give me a script example that does the same thing as above but without the wget? I'm trying to better understand how to set up cronjobs.

Thanks!
Mike
Also, is this the correct cron file? public_html/components/com_easyblog/services/cron.php
The only other one that I could find is at public_html/components/com_easyblog/cron.php

My primary concern was getting the email notifications working but it appears that the first one has multiple purposes in it.

Thanks
·
Friday, 30 September 2016 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

This is the file which execute the cronjob -> public_html/components/com_easyblog/cron.php

Regarding this cron.php file, you have to modify the `site.com` to your domain name, you can refer on our documentation here : https://stackideas.com/docs/easyblog/administrators/cronjobs/modifying-domain-name

Hope this help.
·
Saturday, 01 October 2016 13:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex for responding on the weekend. Your reply answers one of my questions

Can you give me an example of cronjob code that does not use wget? I'd love to have a version of the code I included above but without using wget. I could find no web hosting help that uses wget in it's suggestions.

Thanks,
Mike
·
Tuesday, 04 October 2016 00:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Michael,

If your hosting provider supports php CLI (Command Line Interface), then you can use the CLI to invoke the php script. Example:



Where /usr/bin/php is the absolute path to your php CLI.
·
Tuesday, 04 October 2016 00:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Thanks for that! When I was working with it before I was using the path to the cron.php in the services folder. In other words I didn't have a clue what I was doing.
May I suggest that StackIdeas include samples of cronjob code for each of of the major hosts in your documentation? I think it would save you and users a lot of time.
Thanks again,
Mike
·
Tuesday, 04 October 2016 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Michael,

Thanks for your input on this. We'll see what we can do about this as there are just too many web hosts and we can't be purchasing an account on all these hosting sites
·
Tuesday, 04 October 2016 11:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Fair enough but you already have a collection throughout this forum that could be consolidated. I would guess that a vast majority would be the same, just like I used one written for Hostgator in my Namecheap account.
You might also include in your docs the path to the correct cronjob.php file since I found two and tried to use the wrong one. From my search of your forum I'd say these two things would save you a lot of tech support time.

Even though your tech support has been great I personally like to figure things out for myself if I can.
·
Tuesday, 04 October 2016 14:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Noted, thanks for the input on this!
·
Tuesday, 04 October 2016 21:39
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post