New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matomo couldn't write to some directories (running as user 'www-data'). #18813
Comments
Hello. Even after just running the commands suggested in the error, the message still persists. |
Hi, same problem here |
same here in my docker install this doesn't help at all
|
Same problem here, in a docker install |
vim /etc/php-fpm.d/www.conf then run : php-fpm -R |
So I encountered this today after updating my containers. I'm running matomo in a docker compose setup. I was able to fix it like this: docker-compose exec matomo /bin/bash # start ssh shell in matomo container
chown -R www-data:www-data /var/www/html # change ownership of the folder |
Hey there. Sorry to hear you are all having problems with permissions. |
Same problem running in a Apache Server/Rocky 8. I've tried giving 0777 to all the folders and still didn't work. The service is running under the user "apache" and when I logged in as that user, I had permissions to read/write to the folders that were being requested. |
@sgiehl - I know it's closed and my suggestion isn't about this particular issue, but I believe you should mention on this error page ("Matomo couldn't write to some directories... ") that the |
Matomo was working yesterday. Today I tried to install security info pluging and it's now reporting the following error:
Matomo couldn't write to some directories (running as user 'www-data').
Try to Execute the following commands on your server, to allow Write access on these directories:
If this doesn't work, you can try to create the directories with your FTP software, and set the CHMOD to 0755 (or 0777 if 0755 is not enough). To do so with your FTP software, right click on the directories then click permissions.
After applying the modifications, you can refresh the page
If you need more help, try Matomo.org.
First, I don't want /srv/www/matomo to be owned by the webserver. This is generally bad practice, why are you suggesting this?
tmp as well as plugins however are owned by matomo. (plugin shouldn't be owned by the webserver either but it's ok temporarily when installing a plugin via GUI).
So I set everything in ./plugin 755 and owned by webserver but I still get that error...
The text was updated successfully, but these errors were encountered: