Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    27

    Default Cronjobs donīt work

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    You need to make sure crond works, if not, then restart it.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    27

    Default

    how can I do so? (make sure that it runs) I tried checking the services and all services run...

  4. #4
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    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
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,914

    Default

    use one of the sytaxes below fora user php script cron

    /usr/bin/lynx --dump http://domain.com/file.php >/dev/null
    /usr/bin/wget -O - http://domain.com/file.php >/dev/null
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

Similar Threads & Tags
Similar threads

  1. URL don't work
    By bubbathegeneral in forum New User Questions
    Replies: 10
    Last Post: 05-14-2009, 02:56 PM
  2. subdomains don't work
    By cosmin in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-20-2004, 03:48 AM
  3. Nameservers Work But Don't!
    By thedead in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 11-11-2003, 10:18 PM
  4. New accounts don't work
    By bmcclure in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 06-13-2003, 06:31 PM
  5. name.ro WORK**www.name.ro DON'T WORK
    By cosmin in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-03-2002, 11:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube