Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    4
    Trophy Points:
    193
    Location:
    Minneapolis, MN
    You need to make sure crond works, if not, then restart it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dnagency

    dnagency Active Member

    Joined:
    Oct 21, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,728
    Likes Received:
    74
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - Cronjobs don´t
  1. joaosavioli
    Replies:
    4
    Views:
    950

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice