I have recently installed wordpress but I have run into the problem that when i try to install plugins and themes i lack the permissions to write files.
My OS is linux ofc, running thru ssh terminal.
I have tried the following things to give permissions to the user.
chmod -R 777 /var/www
I have also tried doing as described in this article, when i tried
sudo usermod -a -G www-data <some_user>
I got the message
could not resolve host <host-name>