Cron jobs don't work.

wdalessi

Verified User
Joined
Jun 3, 2005
Messages
16
I have installed a couple websites on my server that require Cron jobs.

I have set them up using the controll panel like

wget http://www.domain-name.com/script.php

the strange thing is that one worked a couple times, but the other website never worked.

The sites were down 2+ weeks befor the programmer figured out that cron was not working on my server correctly for some reason.

He has set the cron jobs to run on a remote server, but this does not fix the larger problem of Cron jobs not properly working on my server.

I am running Fedora core 3, and DA.

I do remember that when I setup the domains on the server I had the "Cron Job" setting turned off for the domains, so I went back into the settings and turned them "ON".

Could there be a conflict because of this, and if so how could I determine it?

How can I check my server to see if "Cron Jobs" should be working or not.

Thank you in advance for any help you can offer.

I am a little new to Linux and Direct Admin.

Thank you.
 
you need to run the wget as root.

to see if they are being executed, goto /var/log/cron
or /var/log/cron.1

or shell into the account that's running them, and try a wget http://domain.com and see if it says access denied
 
Hello,

It tries to connect and fails. It says there is "no route to host" and keeps retrying with the same message.

conecting to Domain.com .....Failed: No route to host.
retrying.


This really has me confused.


They look like they should run, but nothing happens. In directAdmin they look like they run.
 
If there's no route to the host then of course you can't connect.

Do an nslookup or dig on the URL, and also a traceroute. All from the server of course.

Jeff
 
Back
Top