after changing PHP mode to fcgi, matomo does not work...
sudo a2enmod proxy_fcgi setenvif sudo a2enconf php7.3-fpm sudo service apache2 restart
The directory "/tmp/cache/tracker/" is not writable
this needs to be fixed
Hi @broros thanks for creating the issue. Most likely this is a server configuration issue. Be good to check the file permissions and that the correct user can write these directories. Does your solution in https://github.com/matomo-org/matomo/issues/15509#issuecomment-581741383 not work anymore?
If PHP tells us a directory is not writable, then more than likely it is actually not writable for PHP. Maybe check what permissions these run.
I don't think you get it... it's not the folder permission. This happens when I change to FastCGI PHP mode Vs FPM
This should not be happening :(
If the problem happens after the change, the php-fpm service might run under a different user than the apache2 does and therefore has no write permission for the tracker folder.
Check your pool-Config for "Unix user/group of processes" and/or check with
ps aux | grep php-fpm what user is running fpm.
umaskwhen making file system read/writes
Off the top of my head — Joomla, WordPress, Drupal, Laravel — they all have (intentionally or not) created platforms that hew to the above.