You should set up crontab to run your cron tasks as the same user that runs the web server; for example, if you run your web server as the user www-data:
You should set up crontab to run your cron tasks as the same user that runs the web server; for example, if you run your web server as the user www-data: