By Robgunner on Monday, 23 April 2018
Posted in General Issues
Likes 0
Views 702
Votes 0
Hi Guys

I am trying to create the cronjob on my hosting provider

I have changed the /components/com_easysocial/cron.php to my site

Now looking at 1and1 guide as below it seems I need to write a php script and than schedule this to run, can you help with the line of php I need to put in the script please

https://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/cron-jobs-c37727/create-a-cron-job-a595882.html

Kind Regards
Rob
I have found the crontab -e but not sure of path to put in? will the below work if I have a line of script in the mycron.php?

* * * * * /usr/bin/php /mydomain.com/mycron.php
·
Monday, 23 April 2018 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
I think I have done it by the following and reading another members comments

Edit /components/com_easysocial/cron.php to my site

Edit crontab -e and added the below to last line
*/1 * * * * wget -O /dev/null 2>&1 "https://mydomain.com/index.php?option=com_easysocial&cron=1";

I will let you know if I receive the emails okay and will close the ticket

Thanks
Rob
·
Monday, 23 April 2018 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Keep us updated then
·
Monday, 23 April 2018 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul

It works and I received a comment email notification.

Kind regards
Rob
·
Monday, 23 April 2018 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Monday, 23 April 2018 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post