W
W
WolfInChains2020-06-09 13:28:38
Task Schedulers
WolfInChains, 2020-06-09 13:28:38

Why is Cron-job not running script?

I uploaded the script to the hosting, made a cron on cron-job.org, but I ran into such a problem that it does not start the php script, although the logs say that the launch was completed, I tried to manually follow the path indicated in the cron and the script worked. Maybe I'm doing something wrong? How to set it up correctly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WolfInChains, 2020-06-09
@WolfInChains

The issue was resolved by recreating the cron.

G
galaxy, 2020-06-09
@galaxy

cron has a truncated PATH by default and the current directory, most likely, /
You need to write all the paths, both to executable files and to scripts / logs, in full (not php, but /usr/bin/php, well, or where php is located ).
Nothing more to say without seeing the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question