K
K
Kirill Gorelov2016-06-09 14:58:19
PHP
Kirill Gorelov, 2016-06-09 14:58:19

Why is the cron job not executing, vestacp?

Hello. I want to hang up a script on crones.
I followed the example like here vestismiros.ru/2016/02/cron-i-vestacp
I write like this:
php -q /home/admin name/web/site/public_html/folder1/folder2/script name.php
time every 1( just for testing)
*/1 * * *
But it doesn't work.
Vestac panel.
Tell me how is it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-06-09
@deadsandro

/usr/bin/php /home//web//public_html/path/to/script name.php
and
once a minute - all asterisks (* * * * *)
If it doesn't work, run the command from the console manually and see if it works whether the script at all when manually launched (sometimes they use arrays inaccessible there in console scripts ($SERVER for example)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question