I have a WordPress installation on Docker and the upload folder is managed by AWS S3, when I go to activate Matomo I receive a fatal error for writing permissions, in the upload folder, doing tests locally I noticed that Matomo creates a folder /matomo inside the Wordpress upload folder with some configuration files inside.
So the problem is not for writing permissions, but from the fact that Matomo is redirected to S3 when it tries to retrieve the path of the upload folder and this causes it to generate the fatal error.
How can I configure Matomo before starting to make it write the configuration files in a folder other than the WP upload folder?
I tried with the constants defining other patches but it often goes into fatal error because the patches do not match, does anyone have a compatibility solution with AWS S3?
Thanks a lot