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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Location to save cron jobs

Discussion in 'General Discussion' started by steveorg, Sep 20, 2017.

Tags:
  1. steveorg

    steveorg Registered

    Joined:
    Sep 20, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Website Owner
    I have a cPanel account on a shared server. I do not have root access.

    Here's server info from cPanel. I'm not able to run grep.
    cPanel Version 64.0 (build 40)
    Apache Version 2.4.18
    PHP Version 5.6.24
    MySQL Version 10.1.26-MariaDB
    Architecture x86_64
    Operating System linux

    I'd like to have PHP create and save cron jobs. What's the proper path to save them?
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    211
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    If its a script , put it in your public_html folder and add the cron job from your cpanel and that should do the job. If its not working contact your service provider and they will sort it out for you.
     
  3. steveorg

    steveorg Registered

    Joined:
    Sep 20, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Website Owner
    Thanks Eminds. I need to be able to do this without going into cPanel. If already placed on the server why would cPanel be necessary?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    steveorg likes this.
  5. steveorg

    steveorg Registered

    Joined:
    Sep 20, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Website Owner
    Thanks! Will that work with all hosts or should I check first?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    cPanel API 2 functions only require access to cPanel so they should work in a shared environment, but feel free to contact your hosting provider if you'd like to make sure there's nothing in-place to prevent access.

    Thank you.
     
Loading...

Share This Page