CRON jobs
CRON jobs
Hello All,
I install vestacp, i'm new with vestacp,
Now i try start cron job,
I don't know what is my command
e.g. for cpanel is:
Anyone know what is vestacp path ?
Also how i edit cron jobs time, if i want e.g. start every 10min then this look like on this photo ?

Thanks.
I install vestacp, i'm new with vestacp,
Now i try start cron job,
I don't know what is my command
e.g. for cpanel is:
Code: Select all
/usr/bin/php -q /home/domain/public_html/cron.php
Also how i edit cron jobs time, if i want e.g. start every 10min then this look like on this photo ?

Thanks.
Re: CRON jobs
Hello, vestacp89
you can using one of this commands
you can using one of this commands
Code: Select all
/usr/bin/php /home/your user/web/your_domain.com/public_html/cron.php
php -q /home/your user/web/your_domain.com/public_html/cron.php
wget http://your_domain.com/cron.php
Re: CRON jobs
Hello Imperio,imperio wrote:Hello, vestacp89
you can using one of this commandsCode: Select all
/usr/bin/php /home/your user/web/your_domain.com/public_html/cron.php php -q /home/your user/web/your_domain.com/public_html/cron.php wget http://your_domain.com/cron.php
Thanks for fast answer,
just please tell me for photo, this command show cron who will run every 10min i'm right/wrong ?

Thanks.
Re: CRON jobs
Code: Select all
*/10
Re: CRON jobs
Now work but i get this mail:imperio wrote:every 10 minutesCode: Select all
*/10
Code: Select all
PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /home/admin/web/page-domain-name.com/public_html/app/cron.php on line 6
Code: Select all
something-something-something.com
Thanks.
Re: CRON jobs
I think that problem in your cron scriptPHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /home/admin/web/page-domain-name.com/public_html/app/cron.php on line 6
Re: CRON jobs
I remove this cron job,imperio wrote:I think that problem in your cron scriptPHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /home/admin/web/page-domain-name.com/public_html/app/cron.php on line 6
Start again with some little edited,
Now send me empty mail,
Look like i fix this problem ?
Thanks.
Re: CRON jobs
I think your problem is solved
Re: CRON jobs
Yes i think,
Now i'm confused with cron command,
e.g. on this photo is cron run every 1 hour ?

Thanks.
Now i'm confused with cron command,
e.g. on this photo is cron run every 1 hour ?

Thanks.