K
K
Karina2015-10-07 16:31:08
PHP
Karina, 2015-10-07 16:31:08

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

2 answer(s)
M
maximw, 2015-10-07
@iKapex

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 абсолютный_путь

M
MetaDone, 2015-10-07
@MetaDone

you need php-cli, you see it is not on the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question