By Cory Gregory on Tuesday, 09 February 2016
Posted in Technical Issues
Replies 5
Likes 0
Views 425
Votes 0
I have created a cronjob according to your documentation for a GoDaddy hosting environment. ThecPanel settings are on the attached pic. I should note that my hosting is on a VPS.

It is not working and was hoping you may be able to shed light on what I have incorrect. I received a "Permission Denied" notification regarding the cronjob. Screen grab of notice attached.

Thanks in advance for any help.

-Rob
Hey Rob,

Your cronjob command is incorrect. You should:

1. Get the absolute path to "wget". If you are unsure, check this with your web hosting company

2. For your cron command, it should be

/path/to/wget -o /dev/null "http://yoursite.com/index.php?option=com_easysocial&cron=true"; > /dev/null 2>&1
·
Wednesday, 10 February 2016 12:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark:

Thank you for the reply. I am confused by the conflict in the StackIdeas documentation. Your solution (above) is from the EasySocial cronjobs cPanel instructions while my settings are from the EasySocial cronjobs GoDaddy instructions. I had set up a cronjob via cPanel as you describe but GoDaddy does not support wget.

I will consult with GoDaddy again regarding the absolute path and the wget issue vs direct to the php script.

-Rob
·
Wednesday, 10 February 2016 21:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, sorry about that! I missed your post about "Godaddy". For Godaddy, you need to run the PHP CLI (Command Line Interface)

If you take a look at the docs here, http://stackideas.com/docs/easysocial/administrators/cronjobs/godaddy-cronjobs , notice that the command is:

/web/cgi-bin/php5 "/path/to/components/com_easysocial/cron.php"

You need to select this in Godaddy.
·
Thursday, 11 February 2016 02:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark:

Thanks again. That is what I had set up, see the first attached image. I have since deleted that cronjob.

I prepared the cron.php file and I understand the root path to components/com_easysocial/cron.php. Why did you include the /web/cgi-bin/php5 at the beginning of the path?
·
Thursday, 11 February 2016 03:15
·
0 Likes
·
0 Votes
·
0 Comments
·
This is because PHP needs to execute the file. If you do not insert that, there is no way to execute the php file. I believe you should contact Godaddy and ask them about the PHP path.
·
Thursday, 11 February 2016 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post