Run maintenance job cron w/ centralized core

Permalink
I have a centralized core running several websites using a vhost.conf file for each domain - this all works great, the problem I'm running into is running my cron job for the maintenance tasks. I use wget, and it comes back with a 404 error.

I'm not familiar enough with cron to know how else I can run the update script so that it is able to actually find the centralized jobs script - any suggestions?

hursey013
 
Mnkras replied on at Permalink Reply
Mnkras
if you actually visit the url is it a 404?
hursey013 replied on at Permalink Reply
hursey013
Going straight to the page in a web browser works fine, that's what's confusing me.
Mnkras replied on at Permalink Reply
Mnkras
are you doing this in cron?
hursey013 replied on at Permalink Reply
hursey013
Ya using cron, everything worked great until I switched to the central core, that's why I'm trying to figure out if there is something I can use other than wget in cron that can access the script.
Mnkras replied on at Permalink Reply
Mnkras
and you are certain its getting a 404? (your logging to file?)
hursey013 replied on at Permalink Reply
hursey013
Cron wget http:// website.org/index.php/tools/ required/jobs?auth= b766c15a83020084fc51e617182414d5 website.org/index. php/tools/required/jobs?auth= b766c15a83020084fc51e617182414d5 Resolving website.org... 127.0.0.1 Connecting to website.org|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 404 Not Found 18:00:01 ERROR 404: Not Found.
Mnkras replied on at Permalink Reply
Mnkras
if you execute wget from the command line, no cron, does it work?
hursey013 replied on at Permalink Reply
hursey013
Same result:

[root@website ~]# wgethttp://website .org/index.php/tools/required/jobs?auth=b766c15a83020084fc51e617182414d5
--10:04:45-- http://website .org/index.php/tools/required/jobs?auth=b766c15a83020084fc51e617182414d5
Resolving website .org... 127.0.0.1
Connecting to website .org|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:04:45 ERROR 404: Not Found.
vGibson replied on at Permalink Reply
vGibson
Does your hosting company have wget disabled?

Found out mine does and that I had been banging my head on my desk for hours trying to get wget to work for nothing. I ended up using cURL and while I am not sure it will work with your host its worth a shot.

Try this...
curl --silent --compressed http://www.WEBSITEADDRESS.org/index.php/tools/required/jobs?auth=b766c15a38020084fc51e617182414d5
vGibson replied on at Permalink Reply
vGibson
Blah, I'm half asleep but after reading your post again it looks like wget is not disabled but just not getting a connection. While it may not be disabled perhaps it is limited to local files only?

Think I better go to bed now... Best of luck though.. :)