Answer the question
In order to leave comments, you need to log in
PHP source code output when trying to run it via Cron. What to do?
Available Ubuntu 16.04 Server + LEMP. It is required to run the script.php script from the /usr/share/nginx/html/script.php directory every 2 minutes.
I start ssh and write crontab -e and add the line
*/2 * * * * php /usr/share/nginx/html/script.php > /usr/share/nginx/html/log.txt 2>&1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question