1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel WHM - cPanel CronJobs Don't Works

Discussion in 'Web Hosting' started by reletobg, Aug 14, 2012.

  1. reletobg

    reletobg Newbie

    Joined:
    Jun 26, 2012
    Messages:
    21
    Likes Received:
    1
    I have installed cPanel WHM at VPS and i make one reseller account for my site, but the job don't run even one time. I use this code for the cron:
    [TR="class: dt_info_row info-odd"] [/TR]
    */5 * * * * /usr/local/bin/php -f /home/proget/public_html/cron.php
    I can't fiend any answer about this problem in Google so i try here , i hope here will help me some one. :beat4:
     
    Last edited: Aug 14, 2012
  2. kvmcable

    kvmcable Supreme Member

    Joined:
    Dec 28, 2010
    Messages:
    1,355
    Likes Received:
    2,818
    Occupation:
    24 year business owner - old school dude
    Location:
    KFC - BW3
    Set up the email account for your cron job so it sends you an email when the cron runs and post the error.
     
  3. reletobg

    reletobg Newbie

    Joined:
    Jun 26, 2012
    Messages:
    21
    Likes Received:
    1
    Don't send emails. :(
    But the mail server works fine.
     
  4. Hostwinds

    Hostwinds Power Member UnGagged Attendee Enterprise Member

    Joined:
    May 17, 2010
    Messages:
    776
    Likes Received:
    550
    Occupation:
    C.E.O.
    Location:
    Seattle
    Home Page:
    Try editing the line to this


    also try this



    Also make sure you are not pasting the "*/5 * * * * " part into the command line field as cPanel has their own GUI for easily editing the timing of the cron job
     
  5. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,229
    Occupation:
    Retired
    Location:
    Old Peoples Home
    If you go to cron.php in the browser does it work?
     
  6. linuxroadies

    linuxroadies Junior Member

    Joined:
    Jul 20, 2013
    Messages:
    100
    Likes Received:
    16
    Occupation:
    System admin
    Location:
    Germany
    hi

    crontab command
    is used to edit/remove the current cron job on the server. Below are the few options of crontab command:

    crontab -l
    - Displays the current cron jobs.
    crontab -e - To edit the cron jobs.
    crontab -r - To remove cron jobs.

    If you wish to edit it for particular user, you can use the following:

    crontab [-u user] [-l | -r | -e] [-i]

    If you are doing it for a user as root

    For edit and to list the cronjobs below are the commands

    crontab -u <username> -e

    crontab -u < username> -l
     
  7. mazgalici

    mazgalici Supreme Member

    Joined:
    Jan 2, 2009
    Messages:
    1,489
    Likes Received:
    881
    Home Page:
    check your error log