By remote man on Wednesday, 04 May 2016
Posted in Technical Issues
Likes 0
Views 815
Votes 0
High support at Stack Ideas,
I still can't get cronjob command right to work in Easy Social. And I have followed your documentation carefully.

all my existing cronjobs begin with
nice -n19 ionice -c2 -n7


A typical Sotftaculous cronjob command is
nice -n19 ionice -c2 -n7 /usr/local/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --backup --auto=1 --insid=413_91730


My domain is a subdoman so path to its folder (subfolder) is like this /home/user/public_html/subfolder
Then I tried to write the command like this
/home/user/public_html/subfolder/ -O /dev/null "http://subdomain.com/index.php?option=com_easysocial&cron=true"


and I get a email like this: /usr/local/cpanel/bin/jailshell: /home/user/public_html/subfolder/: is a directory


I tried another command like this:
/home/user/public_html/subfolder/bin/wget -O /dev/null "http://subdomain.com/index.php?option=com_easysocial&cron=true"


And I get an email like this:/usr/local/cpanel/bin/jailshell: /home/user/public_html/subfolder/bin/wget: No such file or directory

Finally, I tried a command like this:
nice -n19 ionice -c2 -n7 /home/user/public_html/subfolder/bin/wget -O /dev/null "http://subdomain.com/index.php?option=com_easysocial&cron=true"


and it just wont send an email at all.

*I replace "user" with my cpanel username and "subfolder" with the actual name of the subfolder and "subdomain.com" with the actual subdomanin.
Please looking at my case, what should be the correct command?
Thank you
Hey Sam,

You need to check with your hosting provider if wget is supported. If it is supported, ask them for the absolute path of "wget".

wget is a binary file (like a .exe) which your hosting provider installs on the server
·
Wednesday, 04 May 2016 17:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

May I know, are you set up cronjobs using cPanel ? If yes, can you simply follow the steps on the documentation http://stackideas.com/docs/easysocial/administrators/cronjobs/cpanel-cronjobs
·
Wednesday, 04 May 2016 17:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

Hey Sam,

You need to check with your hosting provider if wget is supported. If it is supported, ask them for the absolute path of "wget".

wget is a binary file (like a .exe) which your hosting provider installs on the server


Hello Mark thanks for helping me ask my host the right question. They answered that the absolute path to wget is
/usr/bin/wget


So I tried this following which happened to be the right and all that I needed for a command

/usr/bin/wget -O /dev/null "http://subdomain.com/index.php?option=com_easysocial&cron=true"


and it worked.

Preceding the command with
/home/user/public_html ...

was not neccessary as I had been trying before I contacted you.

I now know that it doesn't matter whether Easy social is installed in subfolder or the main public_html folder. Just the absolute path matters.

*And I am using CPanel
Hope this will help someone else get their command right easily

Thank you once again.
·
Thursday, 05 May 2016 15:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome and you're so kind of sharing your experience here. 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, 05 May 2016 15:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post