By Lars Jan on Saturday, 10 October 2015
Posted in Technical Issues
Replies 17
Likes 0
Views 1K
Votes 0
Can you help me with advice on how to set-up the cron job for EasySocial. We have our "own" virtual server with a hosting firm in Europe 1and1. We have full root access and everything but I am not at the top end of programmers :-)

The server runs CentOS 6 with Parallels Plesk Panel 12 (64-bit)

In my Plesk settings panel for the webspace I have a section for server, then tools&settings / scheduled tasks

in scheduled tasks I can add a task "mail"

Please see attached screenshots-

Is this where i can set-up the cron jobs? Nowhere can I find a specific section called "cron-jobs" or similar

Your help is very much appreciated . many thanks!!
Hey Lars,

Try open this file -> JoomlaFolder/components/com_easysocial/cron.php


// Find this line of code
$host = 'site.com';

// Replace your domain name e.g. http://stackideas.com
$host = 'stackideas.com';



After that find your correct path e.g
php -q /var/www/vhosts/stackideas.com/httpdocs/components/com_easysocial/cron.php


Then put in your Plesk command field and see how it goes.
·
Saturday, 10 October 2015 00:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex,

Will try over the weekend and get back to you.
Cheers
Lars
·
Sunday, 11 October 2015 17:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Lars,

Thanks for updating us on this. Please let us know how this goes
·
Sunday, 11 October 2015 20:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys,

Thanks again.

So - I set up the scheduled task (for every 5 min ) but the scheduler notification sends me an email letting me know that:
Could not open input file: /var/www/vhosts/mysite.com/httpdocs/components/com_easysocial/cron.php


Obviously mysite.com is replaced with my own site. The path is correct by the way

as command I used

php -q /var/www/vhosts/stackideas.com/httpdocs/components/com_easysocial/cron.php


sonething to do with file permissions?

What about the cronjob url in the ES Settings do I need to turn them on. They are off now but I am assuming the command you gave me goes directly to the cron.php so I dont need cron url..?

Thanks for your help

If it helps in addition to the ftp and site user access I can give you a user so you can access the plesk panel .

Best Lars
·
Monday, 12 October 2015 07:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lars,

I believe it is permission issue. Can you provide us your cpanel access so we can troubleshoot this.
·
Monday, 12 October 2015 10:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

yes thanks. It is plesk. see details in site details. You have admin rights so please dont shot off my site :-)

Thanks for your help!!
Lars
·
Monday, 12 October 2015 16:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys,

could you let me know if you had a chance to look at the issue? I have given you Plesk Panel access in the previous post.

Your help is greatly appreciated

Many thanks
Lars
·
Tuesday, 13 October 2015 20:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Lars,

I am really sorry for the delay of our reply, we might have missed your thread earlier. It looks like the cron.php file isn't updated. I have updated this for you. However, you need to check with your web hosting provider with the absolute path to php and how we could add it into the schedule tasks.
·
Wednesday, 14 October 2015 14:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

The absolute path to the cron.php is
/var/www/vhosts/venturekontor.com/httpdocs/components/com_easysocial/cron.php

The same as earlier. Is there anything missing ?

That's how I put it in the scheduler. Did you have a chance to look at the scheduled task in the panel?

Many thanks
Lars
·
Wednesday, 14 October 2015 16:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Lars,

Sorry for the confusions. What i meant was the php executable When I logged into your plesk, I don't seem to see any tasks created in the task scheduler
·
Wednesday, 14 October 2015 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

it looks like there are two way of scheduling tasks via the panel.

Once you log on you can see the tabs on top of the screen (Websites & Domains, Applications, Files and so on ) There is also tab "Server", under this tab you will find a number of menus - and under Tools&Resources you see "Scheduled Tasks" There you find a list of systems user tasks and there I selected"Mail" you will see the setting there.

There is another "Scheduled Tasks" on the right top sidebar on the "Websites & Doimans Tab" . When you click there you can add a scheduled task for the user that is logged in. So in your case it will say "Schedule a Task for stackideas"

So I am not exatly sure where to schedule the task

Thanks for your help !!

Lars
·
Wednesday, 14 October 2015 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Lars,

I don't see any tab that says Server. This is what I can see here, http://screencast.com/t/rM5aHElR

Anyway I strongly would suggest that you get in touch with your hosting provider as they would have a better idea as to why you are hitting those errors.
·
Wednesday, 14 October 2015 21:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark, must be user access rights for the plesk panel. I check and let you know. If you would have another look later that would be great. Will let you know.
Lars
·
Tuesday, 20 October 2015 14:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Lars,

I am sorry for the delay of this reply,

May i know did you consult with your hosting regarding this yet?
·
Wednesday, 21 October 2015 16:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

yes I did and they said the schedule task is the section exactly from cron jobs. The path is also correct, I will try one more thing and come back to you and let you know

Cheers
·
Friday, 23 October 2015 01:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, I am getting closer even though i am checking this now with the cron.php for easyblog (I have ES and EB installed) i am now getting this message via notification


PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/vhosts/venturekontor.com/httpdocs/components/com_easyblog/cron.php on line 23
·
Friday, 23 October 2015 02:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lars,

There is a syntax error in your file. I've fixed it for you. Please try again.
·
Friday, 23 October 2015 11:02
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post