Cronjob @ Hetzner

Hello,

I understand that you have been having trouble setting up the Matomo cronjob on Hetzner for several days, and that even the support team has not been able to help. When you try to run the job via Cronjob, you only receive information about different PHP versions, but everything works fine when you call it via HTTPS.

There could be several reasons why your Cronjob is not working. Here are a few things you can check:

  1. Make sure that the PHP version used by the Cronjob matches the version used by your website. You can check the PHP version by running the command “php -v” in your terminal.
  2. Check if there are any errors in the output of your Cronjob. You can do this by redirecting the output to a file, like this:*/5 * * * * php /path/to/your/script.php > /path/to/your/logfile.txt 2>&1This will run the script every 5 minutes and redirect any output to a log file. You can then check the log file for any error messages.
  3. Make sure that the script you are trying to run has the correct permissions. It should be executable by the user that is running the Cronjob.
  4. If your website is behind a firewall or other security measures, you may need to whitelist the IP address of the server running the Cronjob.

If none of these solutions work, it may be helpful to consult with a developer or more experienced user who can help you troubleshoot the issue in more detail.

I hope this helps!