I am trying to run cron for php file in site.
I tried many commands, including those offered on the forum.
For example:
usr/bin/php/home/user/web/domain/public_html/file.php
/usr/bin/wget https://site.com/file.php
/usr/bin/php7.4 /home/user/web/site.com/public_html/file.php
sudo /usr/bin/php/home/user/web/domain/public_html/file.php
/usr/bin/curl --silent http://site.com/file.php &>/dev/null
All this is not working.
In the logs I get:
2022-01-22 11:00:54 v-unsuspend-cron-job ‘admin’ ‘12’ ‘no’ [Error 6]
or
2022-01-22 10:39:47 v-unsuspend-cron-job user’ ‘1’ ‘no’ [Error 6]
2022-01-22 10:39:47 v-unsuspend-cron-job user’ ‘2’ ‘no’ [Error 6]
I did not find any help on this topic from Hestia. How to create a cron for a user?
Any ideas?
I failed to run cron using the activate method. I tried to install after 1 minute. This does not work. The fact that kroner works I judge by the log.
/var/log/hestia/error.log
That is why you see the error message “v-unsuspend-cron-job ‘korobok’ ‘2’ ‘no [Error 6]” As the cronjob is not suspended and can’t be “Activated” / Unsuspended" any more…
I removed all cron commands. Created a new one as in the screenshot. No command. There are no errors in the logs. But I didn’t receive an email about cron job and cron didn’t work on 14.06 ?
By clicking on the link, the script test works and a notification letter comes to my mail about this.
It would be logical to display the status of the cron, so that it is clear whether it is active or not. Then there will be fewer mistakes. But the cron command still doesn’t work for me.
What command do you mean? I have no problem unzipping the archive, uploading the file to the database via ssh. I do not observe any problems at work at all, except for crone.