By Phivos on Sunday, 02 August 2015
Posted in General Issues
Likes 0
Views 1K
Votes 0
Hi there,

We started working on EasySocial component and our first query concerns the establishment of cronjobs. We updated the cron.php (i.e. changed the site.com to our site) and created a cronjob in the GoDaddy host using the command:
/web/cgi-bin/php5 "$HOME/html/components/com_easysocial/cronjob.php"

But we receive the following notification on our email:
/usr/local/cpanel/bin/jailshell: /web/cgi-bin/php5: No such file or directory

Please let us know if the steps we took are correct. We understand that the path we put is incorrect but how we can locate the correct path/folder?


In addition, please let us know if the steps that should have been taken are:
1. Update the cron.php in /components/com_easysocial through FTP and
2. Setup the cron in the GoDaddy host
i.e. there are no more steps to do like enabling any option in EasySocial component?


What about the enabling archive feature (in components/Easysocial/settings/stream)? If we set this option to "Yes" what would be the command to set in the cronjob to be created?

Thank you in advance.

Regards,
Hey Phivos,

The errors that you are getting is an indication that the CLI, isn't correct. The path /web/cgi-bin/php5 is wrong and you should contact your web host and obtain the path to the executable for php
·
Monday, 03 August 2015 02:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Mark,

We managed to set it up and send email notifications every 5 minutes. The CPanel command for the rest GoDaddy users is:
/usr/local/bin/php -q /home/(YOUR USERNAME THAT YOU LOGIN TO THE CPANEL)/public_html/components/com_easysocial/cron.php

What about enabling the stream archive feature (as mentioned in the backend under components/Easysocial/settings/stream)? If we set this option to "Yes" what would be the path for the cron.php file? Is this the same cron.php file as the one used for the above procedure?

Regards,
·
Tuesday, 04 August 2015 03:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Phivos,

Yes the cron command is the same for the stream archive feature.
·
Tuesday, 04 August 2015 10:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Ezrul,

Thanks for the prompt response. What about EasyBlog.

The command should be as follows, right?
/usr/local/bin/php -q /home/(YOUR USERNAME THAT YOU LOGIN TO THE CPANEL)/public_html/components/com_easyblog/cron.php
(i.e. the same as before just the path of the file changes to com_easyblog/cron. php)

The main query we have for easyblog is that email notifications are being sent right now before the set up of a cronjob. Bearing in mind that this was not the case for Easy Social, is there any option that we have to enable/disable in EasyBlog and then create the cronjob?

Regards,
·
Tuesday, 04 August 2015 18:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Phivos,

I believe the email get sent is because you have set "Send email on page load" from your backend > easyblog > settings > notification, http://screencast.com/t/YKaxH6dfv1 . When this option is enabled easyblog will get processed even if the cronjob is not being set on your server.

Hope these can clear up the confusion.
·
Tuesday, 04 August 2015 19:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Ezrul,

That option is set to No.

So we just perform the two steps:
1. Update the "site.com" in cron.php and
2. Set up the cron job

The cron job command for EasyBlog will be the same as for EasySocial just the path of the file changes to /components/com_easyblog/cron.php?

Regards,
·
Tuesday, 04 August 2015 20:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes that is correct Phivos
·
Tuesday, 04 August 2015 23:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Mark,

Thank you!

Regards,
·
Tuesday, 04 August 2015 23:41
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome I will mark this thread as solved but if you still have issues, please start a new thread.
·
Tuesday, 04 August 2015 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post