Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default Can't add Cron job

    Hi,

    I try to add a cron job in cPanel but it not show in entry after added.

    when I go back it show empty !

    I try to chmod crontab

    #chmod 4755 /usr/bin/crontab
    #chmod 1777 /var/spool/cron

    And I try to update CP
    #/scripts/upcp

    But not working.

    I'm go to /var/spool/cron It don't show user to create cron job it's show root only.

    How to resolve them ?

    Thank you !

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Ask someone to login to your server and check. As far as I can see what you have done is correct so far.

  3. #3
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    I need resolved them on my self.

    Anyone know the problem possible with...?

  4. #4
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    Anyone advise here ?

  5. #5
    Member
    Join Date
    Sep 2006
    Posts
    73

    Default

    Just a crazy thought, crond running ?
    service crond restart

  6. #6
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    Quote Originally Posted by linux.newbie View Post
    Just a crazy thought, crond running ?
    service crond restart
    I try to restart crond and restart server but not resolved.

    My cPanel 11.11.0-S16789

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge jackal's Avatar
    Join Date
    Feb 2002
    Posts
    708

    Default

    chmod a+s /usr/bin/crontab

    Maybe

  8. #8
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    Quote Originally Posted by jackal View Post
    chmod a+s /usr/bin/crontab

    Maybe
    Not working...

  9. #9
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Post

    Whats the cron look like you're adding?

  10. #10
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    Quote Originally Posted by Infopro View Post
    Whats the cron look like you're adding?
    0 23 * * * php -q /home/user/public_html/members/schedules/generate_invoice.php

  11. #11
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Quote Originally Posted by nakamura00 View Post
    0 23 * * * php -q /home/user/public_html/members/schedules/generate_invoice.php
    Not sure if this'll help, but try it. Remove the word SPACE and leave one.


    php -q /home/user/public_html/members/schedules/generate_invoice.phpSPACE/home/user/public_html/members/schedules/


    I've got a cron in my cPanel running for years that updates a folding@home stats page that looks like this. Works perfectly.


    php -q -f /home/username/public_html/stats/fah.php /home/username/public_html/stats/ cron 0 10

  12. #12
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    Quote Originally Posted by Infopro View Post
    Not sure if this'll help, but try it. Remove the word SPACE and leave one.


    php -q /home/user/public_html/members/schedules/generate_invoice.phpSPACE/home/user/public_html/members/schedules/


    I've got a cron in my cPanel running for years that updates a folding@home stats page that looks like this. Works perfectly.


    php -q -f /home/username/public_html/stats/fah.php /home/username/public_html/stats/ cron 0 10
    Thx for advise but it not working...

  13. #13
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Does it show up when exeucting the following as root:

    Code:
    crontab -l -u username

  14. #14
    Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Does it show up when exeucting the following as root:

    Code:
    crontab -l -u username
    no crontab for username

    * username = username account for hosting


    It's look like cronjob doesn't create username in /var/spool/cron

    How to repair cronjob system ?

  15. #15
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Which version of cPanel are you using? full version number please.

    Also,

    What is your Operating System?

    Does /etc/cron.allow exist?

    Can you create a crontab manually from the command line as the user (not as root)?

Similar Threads & Tags
Similar threads

  1. Keep getting a cron job
    By NLCJ in forum cPGS Discussions
    Replies: 2
    Last Post: 10-20-2009, 04:05 PM
  2. Cron job can not add
    By seby in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-28-2007, 01:35 AM
  3. about cron job
    By persianwhois in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-14-2007, 08:28 AM
  4. Cron Job
    By HyperVirus in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-01-2005, 03:06 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube