@maniac-0s opened this Issue on February 17th 2022

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:

chown -R www-data:www-data /srv/www/matomo
find /srv/www/matomo/plugins -type f -exec chmod 644 {} \;
find /srv/www/matomo/plugins -type d -exec chmod 755 {} \;

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...

drwxr-xr-x 68 www-data www-data 4096 Feb 14 18:02 .
drwxr-xr-x 13 luser   luser   4096 Feb 17 13:29 ..
drwxr-xr-x 12 www-data www-data 4096 Feb  3 05:13 Actions
drwxr-xr-x  7 www-data www-data 4096 Feb  3 05:13 Annotations
@maniac-0s commented on February 21st 2022


Even after just running the commands suggested in the error, the message still persists.

@LucasDemea commented on February 22nd 2022

Hi, same problem here

@casualuser commented on May 15th 2022

same here in my docker install

this doesn't help at all

chown -R www-data:www-data /var/www/html
chmod -R 777 /var/www/html/plugins
@citananda commented on June 24th 2022

Same problem here, in a docker install

Powered by GitHub Issue Mirror