By gtoddv on
I am trying to use cpanel to setup the cron. I have the secursite module installed which means that the cron has to pass credentials. I have looked at everything on this site (and others) and can't get it to work. Could someone please help!
Regards,
gtoddv
Comments
Does anyone us it?
OK so am I the only one using the securesite module?
I'm not familiar with securesite, however...
If it uses a simple 401 Unauthorized, you'll have to look at the options for the program you're using to hit cron. For example, if you're using lynx, you can send a username/password with:
lynx -auth=uname:pass -source http://domain.com/drupalroot/cron.php
Thanks but...
Unfortunately lynx is disabled on lunarpages (my host). I cant use wget either.
Thanks very much for the response! I will keep hoping someone else has dealt with this already and will be gracious enough to share :)
gtoddv
It doesn't matter what machine is running cron
All you need to do is hit cron.php somehow. You can visit it in a web browser, even. If your host doesn't have a program for accessing a webpage remotely, run the cron job on another computer that does (home linux box, friend's linux box, I *think* you can do it on a sourceforge project account as well).
You might even be able to get the Windows Scheduler (TM) to do it... but I haven't touched a windows box in two years, so I can't help you there.
Very True
You have got a good point. My issue is that this is for a government client. They aren't very technical and I would like to get this to work inside of cpanel and be all self-contained. They would stand a better chance of maintaining the entire site that way,
You can use wget
Just use the standard http://uname:pass@domain.com/cron.php and it will work fine.
Tried that...
Doesn't work in any form that I found searching the web. I seem to remember a 'no input file' error. Used various syntax and never got it to work. (have to use cpanel)
Poormans Cron
I gave up and decided to use poormans cron.