Answer the question
In order to leave comments, you need to log in
Why is cron not running?
hosting ispmanager.
There is a Scheduler. I am adding a new command.
In theory, you just need the absolute path to php and the absolute path to the script.
Tried like this: /usr/bin/php абсолютный_путь >/dev/null 2>&1
So: php абсолютный_путь >/dev/null 2>&1
There is <?php ?> in the script
Nothing works.
There is a Run button - I click on it and go to a white page with root# /usr/bin/php путь до скрипта >/dev/null 2>&1
File permissions 777.
Thank you all.
Answer the question
In order to leave comments, you need to log in
How do you determine if a script is running or not?
It is also better to use absolute paths in the script.
Have you tried SSHing in and executing the script from the console?/usr/bin/php абсолютный_путь
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question