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.

cron job options not working

Discussion in 'General Discussion' started by amos, Jan 6, 2016.

  1. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    Hello team.
    i know its a very old quetion,i have tried all bellow options in running cron job but seemed not to work, can someone help me please.will appreciate.
    wget http://mydomain.com/cron.php

    /home/autotran/public_html/newsletter/cron.php
    /usr/local/bin/php -q /home/autotran/public_html/newsletter/cron.php

    The permision to the folder is 755
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you getting any error with your cron job ? Please let us know so that we can assist you on this.
     
    amos likes this.
  3. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    thanks for reply no,am not getting any errors when i added the command
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    ok let me try
     
  6. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    thanks but i found out my host has blocked whm where i can use ssh.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you verify if you have root access to the server, or just a hosting account from a web hosting provider?

    Thank you.
     
  8. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    iam afraid they dont give us access to root access,

    http://yourdomain.com/whm
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You will need to report this issue to your web hosting provider for assistance if you do not have root access to the server. They can access the server as "root" and troubleshoot the issue.

    Thank you.
     
  10. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    thanks Michael..i really appreciated your advice.
     
  11. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    Hi,Michael,i contacted my isp,and its seems now to be working .however i received access denied at end of the usr/home/public/php:accessdenied

    ie /usr/local/cpanel/bin/jailshell: /home/auto/public_html/newsletter/blast_script.php: Permission denied
     
    #11 amos, Jan 27, 2016
    Last edited by a moderator: Jan 27, 2016
  12. amos

    amos Member

    Joined:
    Jan 6, 2016
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    nairobi
    cPanel Access Level:
    Root Administrator
    thanks guys its now working like a charm
    used this,i think -q was missing to get php and also permission
    /usr/local/bin/php -q /home/autotran/public_html/newsletter/cron.php
    ---permission to folder 755
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page