M
M
Maxim Volkov2021-05-16 10:07:04
1C-Bitrix
Maxim Volkov, 2021-05-16 10:07:04

When I try to add a script for execution to CRON on a BITRIX 7.5 VM, I get an error: no crontab for root - using an empty one?

I'm trying to add PHP script to CRON under VM BITRIX. According to the instructions, I connect from ROOT via SSH to the server and enter: crontab –e further I
Write the command to execute the script:

*/1 * * * * root /usr/bin/php -f /home/bitrix/ext_www/my-site.ru/bitrix/php_interface/cron_events.php
 /home/bitrix/ext_www/my-site.ru/cron.log 2>&1

Trying to save: Esc and wq
Can't save, I get a message in the console: no crontab for root - using an empty one

Please help, what is the cause of the problem, how to solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Volkov, 2021-05-17
@voland700

Problem solved, mission accomplished.
Detailed instructions for working with CRON .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question