The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cronjobs don´t work

Discussion in 'General Discussion' started by dnagency, Sep 24, 2005.

  1. dnagency

    dnagency Active Member

    Joined:
    Oct 21, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I somehow don´t get my cronjobs to work on a certain server of mine. I tried several scripts that work on other servers. Even tried very simple php scripts, that only create a mySQL table, but those didn´t work as well. All of those scripts I tried work correctly if I start them from the command line in shell (putty), but whenever I try to run the same command line from cronjob they don´t work and I don´t even get an error message.

    this is the cronjob code I use: * * * * * php my/path/script.php

    So it seems that cronjobs don´t work on the whole server. Does someone of you know how I could problably solve that problem? I am using redhat linux and of course Cpanel/WHM to administer.

    thx in advance :)
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You need to make sure crond works, if not, then restart it.
     
  3. dnagency

    dnagency Active Member

    Joined:
    Oct 21, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    how can I do so? (make sure that it runs) I tried checking the services and all services run...
     
  4. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    What is your os?. If it is redhat try the following command
    ---------------------------------
    /etc/rc.d/init.d/crond restart

    Also check your cron log using the following command

    tail -f /var/log/cron
     
  5. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page