Hello, brother,
I have supposed, that when I add a cron job through aaPanel, it will automatically add this jobs under www user in linux. Probably it is not working like that.
So, I have added a tasks under the user www by running command:
crontab -e -u www
*/15 * * * * /www/server/php/73/bin/php /www/wwwroot/staging.dpmk.sk/vendor/drush/drush/drush.php --root=/www/wwwroot/staging.dpmk.sk/web --uri=https://staging.dpmk.sk cron
@reboot /www/server/php/73/bin/php -f /www/wwwroot/staging.dpmk.sk/transdata_fetcher/fetcher.php
But when I run this command as a root from console:
/www/server/php/73/bin/php /www/wwwroot/staging.dpmk.sk/vendor/drush/drush/drush.php --root=/www/wwwroot/staging.dpmk.sk/web --uri=https://staging.dpmk.sk cron
,
I receive this message:
[preflight] The following restricted PHP modes have non-empty values: {disable_functions}. This configuration is incompatible with drush. {Please check your configuration settings in /www/server/php/73/etc/php.ini or in your drush.ini file; see examples/example.drush.ini for details.}