steveorg

Registered
Sep 20, 2017
4
0
1
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?
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
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.
 

steveorg

Registered
Sep 20, 2017
4
0
1
US
cPanel Access Level
Website Owner
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.
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
  • Like
Reactions: steveorg

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
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.