How to call PHP in my Cron script?

In the Cron environment, different PHP versions are available. PHP must therefore be called with the absolute path to the corresponding PHP interpreter:

PHP VersionPath
5.6/opt/php-5.6/bin/php
7.0/opt/php-7.0/bin/php
7.1/opt/php-7.1/bin/php
7.2/opt/php-7.2/bin/php
7.3/opt/php-7.3/bin/php
7.4/opt/php-7.4/bin/php
8.0/opt/php-8.0/bin/php

Don't hesitate to subscribe to our newsletter



Thank you for subscribing to the hosting.fr newsletter.
Cronjob PHP Script