cron problem

Status
Not open for further replies.

CJM1682

New Member
Messages
3
Reaction score
0
Points
0
I am not really familiar with executing cron jobs as i have never done them before. I am trying to get a stats page for my game server up and running and need to run a script to do so. So to start here is some information.

the file i need to execute is located in a folder called stats.

This stats folder was made by logging in via FTp and creating it i did not put it inside any other folders.

i guess wha tim askign is what is the location to the file so i can execute the file i can not seem to find the correct directory structure. any help is appreciated thank you in advance.
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
Usually, you have to put your files inside public_html directory. Since you say that you have the file inside stats directory, the path will be /home/<yourcpanelusername>/public_html/stats/filename.ext
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
- Goto Cron Jobs in your cPanel
- Select Standard
- Select the time when do you need the script to be executed
- Enter the following command
Code:
php-cron /home/[I]<YOURCPANELUSERNAME>[/I]/path-to/php-file.php
 

nonte

New Member
Messages
55
Reaction score
0
Points
0
- Goto Cron Jobs in your cPanel
- Select Standard
- Select the time when do you need the script to be executed
- Enter the following command
Code:
php-cron /home/[I]<YOURCPANELUSERNAME>[/I]/path-to/php-file.php


Thanks a lot!
 
Status
Not open for further replies.
Top