Help to run Cron Job !

Status
Not open for further replies.

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
If you're trying to execute a PHP script then that's not how it's done. You're basically trying to execute it as if it's a shell script.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Help me ! thanks
This Cron job will make a 'output' log file [ cron_output.log ] in your [ public_html ] folder and assumes you PHP script is in your [ public_html ] folder

replace {your cPanel name} and {your PHP file name} with yours - without the "{" "}" - do not add any spaces
note: there is a space at [ ...bin/php(space)/home/... ]

Cron command - one long line:
Code:
/usr/local/bin/php /home/{your cPanel name}/public_html/{your PHP file name} 2>&1 >> /home/{your cPanel name}/public_html/cron_output.log
 
Last edited:

funtvx12

New Member
Messages
3
Reaction score
0
Points
1
This Cron job will make a 'output' log file [ cron_output.log ] in your [ public_html ] folder and assumes you PHP script is in your [ public_html ] folder

replace {your cPanel name} and {your PHP file name} with yours - without the "{" "}" - do not add any spaces
note: there is a space at [ ...bin/php(space)/home/... ]

Cron command - one long line:
Code:
/usr/local/bin/php /home/{your cPanel name}/public_html/{your PHP file name} 2>&1 >> /home/{your cPanel name}/public_html/cron_output.log
Thanks, but please show me where the name of cPanel !
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
show me where the name of cPanel !
on [ cPanel-x3 ] theme (not x10hosting Basic theme) main page - left side under [ Stats ]
--> Home Directory /home/(your user/cPanel name is here)

also right side under [ Files ]
[ FTP Accounts ] -->near bottom [ Configure FTP Client ] - you will see your user/cPanel name next to [ FTP Username: ]
 
Last edited:

funtvx12

New Member
Messages
3
Reaction score
0
Points
1
on [ cPanel-x3 ] theme (not x10hosting Basic) main page - left side under [ Stats ]
--> Home Directory /home/(your user/cPanel name is here)

also right side under [ Files ]
[ FTP Accounts ] -->near bottom [ Configure FTP Client ] - you will see your user/cPanel name next to [ FTP Username: ]
i try that! but it's still not work! it's hard!
 
Status
Not open for further replies.
Top