By Julie Kubiak on Wednesday, 20 September 2017
Replies 13
Likes 0
Views 762
Votes 0
Do I need to set up Cronjob within Easy Social for email to work?
Hey Julie,

Yes and we strongly suggest that you offload all these e-mail dispatching services to the cronjob to ensure that the speed of the site isn't affected. You can learn more about cronjobs here,

https://stackideas.com/docs/easysocial/administrators/cronjobs
https://stackideas.com/docs/easysocial/administrators/cronjobs/cronjobs
·
Wednesday, 20 September 2017 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
I am with Dreamhost.com and it's asking for

Command to run: (max 1000 characters)
Use full paths to files and programs.

Your helpfiles don't cover this.
·
Wednesday, 20 September 2017 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Julie,

Could you check with dreamhost if wget or curl is supported in the cronjob? If so, what is the path to wget or curl.
·
Thursday, 21 September 2017 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
I am awaiting their reply Mark.
Will be back hopefully with an answer...
·
Thursday, 21 September 2017 01:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure, let me know when they have an answer. By the way, it's almost 1.30am here (GMT +8) so I might not be available but our official work hours are from 10am - 7pm, so there could be some delays in the next reply.
·
Thursday, 21 September 2017 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
******Thanks for contacting DreamHost! Both wget and cURL are supported for
cron jobs. You would set up the path to wget or cURL using the PHP file
that you're attempting to access.

I'll share with you our customer guide to use which has info on working
with the command structure for cron jobs.
https://help.dreamhost.com/hc/en-us/articles/215088668

There are more details on advanced cron job settings in our guide here to
help, too.
https://help.dreamhost.com/hc/en-us/articles/215767047

Please let us know if you have any questions! If you have any future
issues, we�re available 24/7 for support.

Kind regards,
Ellen*****
·
Thursday, 21 September 2017 01:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Not entirely sure your location, but I'm in France, but clocking off now till tomorrow...19:46 here.
·
Thursday, 21 September 2017 01:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Julie,

From what your last reply time is around 1:46am yesterday here.

That was great, since Dreamhost supported wget and curl, perhaps you can try follow this documentation as what their provided in earlier https://help.dreamhost.com/hc/en-us/articles/215767047

Then the command you should put something like this :
[gist type="php"]
*/5 * * * * wget -O /dev/null https://www.yourdomain.com/components/com_easysocial/cron.php
[/gist]

Once you setup this already, then try modify this file from your file directory server JoomlaRootFolder/components/com_easysocial/cron.php

Look at this line of code and replace to your current https site domain name and save

$host = 'http://yourwebsite.com';


If those pending email still unable to send out, perhaps you can provide us with your following site details at http://stackideas.com/dashboard/site so we can better have a check?
1. Joomla backend access
2. Dreamhost access
·
Thursday, 21 September 2017 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, all done, but should there be an email address in this field :

Email output to:
Leave blank to disable sending emails

Seems like an odd double-negative when the Cronjobs job is to actually send emails!!
·
Thursday, 21 September 2017 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I added my admin email address as it seemed logical ;-)

Also, for reference, it didn't want scheduling in there so I removed the first part of the code suggested, so

*/5 * * * * wget -O /dev/null https://www.yourdomain.com/components/com_easysocial/cron.php

became
wget -O /dev/null https://www.yourdomain.com/components/com_easysocial/cron.php
·
Thursday, 21 September 2017 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 21 September 2017 19:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Does this look a standard email for my hourly cronjob report?

--2017-09-21 06:00:02-- https://www.masquerading.co.uk/components/com_easysocial/cron.php
Resolving http://www.masquerading.co.uk (http://www.masquerading.co.uk)... 173.236.172.28
Connecting to http://www.masquerading.co.uk (http://www.masquerading.co.uk)|173.236.172.28|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20 [text/html]
Saving to: `/dev/null'

0K 100% 1.48M=0s

2017-09-21 06:00:03 (1.48 MB/s) - `/dev/null' saved [20/20]
·
Thursday, 21 September 2017 21:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Julie,

Yep, that is correct. It's showing that the cron is working correctly.
·
Thursday, 21 September 2017 21:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post