By Guy Goodall on Monday, 16 November 2015
Posted in Technical Issues
Replies 3
Likes 0
Views 731
Votes 0
I've set the cronjob as per instructions for EasySocial and cPanel. The site is however password protected which does not allow the cronjob to be executed.
Is there another way to set cronjob in cPanel to work with a password protected site?

Error message:
Connecting to site.com|xx.xx.xx.xx|:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.

Cheers!
Hi Guy Goodall,

The cronjob is actually executed correctly but the issue is that, in your cron, you are executing wget command to send a http request to your site url, e.g http://site.com/index.php?option=com_easysocial&cron=true. Since your site is password protected, thus you are seeing the error message 'Authorization failed.'

Is there a way to by pass the authentication? Something like added a key at the end of the url in your cron? E.g.


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


Please advise.
Sam
·
Tuesday, 17 November 2015 10:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,
Thanks for your input and I hear what you're suggesting. Yes, It's certainly a possibility.
However, for now I'm going to trigger the cronjob manually by punching it in to the url once I'm logged in.

Thanks for your help.

Cheers!
·
Tuesday, 17 November 2015 11:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Guy Goodall,

You are welcome
Sam
·
Tuesday, 17 November 2015 12:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post