# Cronjob not working on mautic 3.0.1

**URL:** https://forum.mautic.org/t/cronjob-not-working-on-mautic-3-0-1/15083
**Category:** Mautic 3 - Install/Upgrade Support
**Created:** [July 5, 2020, 2:18am UTC](https://forum.mautic.org/t/cronjob-not-working-on-mautic-3-0-1/15083 "2020-07-05T02:18:12Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![stefanomarty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefanomarty/32/690_2.png) [@stefanomarty](https://forum.mautic.org/u/stefanomarty)
#### Post date: [July 14, 2020, 1:44pm UTC](https://forum.mautic.org/t/cronjob-not-working-on-mautic-3-0-1/15083/6 "2020-07-14T13:44:14Z")

</div>

It could be a permissions issue: which http engine are you using?

With Apache, try resetting the permissions to www-data and then execute the cron job as www-data, not root.

See the main article here:  
[https://docs.mautic.org/en/troubleshooting/file-ownership-and-permissions](https://docs.mautic.org/en/troubleshooting/file-ownership-and-permissions)

You’ll have to change the app/cache and app/logs folders to var/ with v.3.0.0+  
sudo -s  
chown -R www-data:www-data /var/www/html/mautic  
cd /var/www/html/mautic  
find . -type d -not -perm 755 -exec chmod 755 {} +  
find . -type f -not -perm 644 -exec chmod 644 {} +  
chmod -R g+w var/cache/ var/logs/ app/config/  
chmod -R g+w media/files/ media/images/ translations/

and then change the crontab file to use ww-data (or assign those tasks to www-data user crontab):  
00,15,30,45 \* \* \* \* www-data /usr/bin/php /var/www/html/mautic/bin/console mautic:segments:update  
05,20,35,50 \* \* \* \* www-data /usr/bin/php /var/www/html/mautic/bin/console mautic:campaigns:update  
10,25,40,55 \* \* \* \* www-data /usr/bin/php /var/www/html/mautic/bin/console mautic:campaigns:trigger

I’d follow this suggestion as well:  
**It is HIGHLY recommended that you stagger the following required jobs so as to not run the exact same minute.**

as seen here:  
[https://docs.mautic.org/en/setup/cron-jobs](https://docs.mautic.org/en/setup/cron-jobs)

---

_[View the full topic](https://forum.mautic.org/t/cronjob-not-working-on-mautic-3-0-1/15083)._
