Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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>
share|improve this question

Whether you should be using the 'www-data' user or something else is very dependent upon your distribution. 'www-data' is very Debian-centric and also often used by their downstream derivative distributions.

Try running 'ps axufww | grep "[a]pache" '. The appropriate USER is the first column.

If you're using something derived from RedHat, it's probably 'apache' instead.

I'm not familiar with a distribution named "OFC", but I'd recommend looking at /etc/passwd to see if any listing in there have '/var/www'. If there is one, that's the user that you should be using. The appropriate group in /etc/group is frequently the same name as the user in /etc/passwd.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .