Crons can be used to run scheduled jobs of your application. Crons are executed as www-data user. For further information how to schedule a cron, you may use https://crontab.guru/.
Please note that crons are not utilized any path variable. Commands are required to included full path like /usr/bin/php.
To create a cron job via PHP following commands are required: