I am on matomo version:4.14.2 and while I was logging into my admin user I was getting this error:
Unable to write in the cache directory /var/www/html/tmp/templates_c/7b while trying to login into matomo from admin user
So after that I get inside the mentioned path and i checked there user it was showing root for some of the folders inside template_c
. After that I applied
chown -R www-data:www-data/var/www/html/tmp/templates_c/7b
It started working fine for me But I am not sure why this happened because the owner for /var/www/html/tmp/
is www-data
and all the other folders in the path /var/www/html/tmp/
have user www-data
.
It would be a great help If you can help me on this.