cPanel WHM - cPanel CronJobs Don't Works

reletobg

Newbie
Joined
Jun 26, 2012
Messages
39
Reaction score
10
I have installed cPanel WHM at VPS and i make one reseller account for my site, but the job don't run even one time. I use this code for the cron:
[TABLE="class: dynamic_table"]
[TR="class: dt_info_row info-odd"]
[TD]*/5[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD] /usr/local/bin/php -f /home/proget/public_html/cron.php[/TD]
[/TR]
[/TABLE]
I can't fiend any answer about this problem in Google so i try here , i hope here will help me some one. :beat4:
 
Last edited:
Set up the email account for your cron job so it sends you an email when the cron runs and post the error.
 
Don't send emails. :(
But the mail server works fine.
 
Try editing the line to this


*/5 * * * * /usr/bin/php -f /home/proget/public_html/cron.php

also try this


*/5 * * * * php -f /home/proget/public_html/cron.php


Also make sure you are not pasting the "*/5 * * * * " part into the command line field as cPanel has their own GUI for easily editing the timing of the cron job
 
If you go to cron.php in the browser does it work?
 
hi

crontab command
is used to edit/remove the current cron job on the server. Below are the few options of crontab command:

crontab -l
- Displays the current cron jobs.
crontab -e - To edit the cron jobs.
crontab -r - To remove cron jobs.

If you wish to edit it for particular user, you can use the following:

crontab [-u user] [-l | -r | -e] [-i]

If you are doing it for a user as root

For edit and to list the cronjobs below are the commands

crontab -u <username> -e

crontab -u < username> -l
 
I have installed cPanel WHM at VPS and i make one reseller account for my site, but the job don't run even one time. I use this code for the cron:
[TABLE="class: dynamic_table"]
[TR="class: dt_info_row info-odd"]
[TD]*/5[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD]*[/TD]
[TD] /usr/local/bin/php -f /home/proget/public_html/cron.php[/TD]
[/TR]
[/TABLE]
I can't fiend any answer about this problem in Google so i try here , i hope here will help me some one. :beat4:


use this * * * * * expression is you want to run your cron job every 1 mint or you can use online tool such as https://crontabgenerator.org for generator cronjob command
 
Back
Top