Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 am installing a rather complicated program that writes to a directory and this directory needs to be able to write to my webserver. My instructions say this:

Grant php/export directory permission to write to webserver:

sudo chown www /usr/local/share/stacks/php/export   #this command assumes your webserver is www

So... I tried that with www and that clearly didn't work. It says that www is an invalid user. Any idea what I'm supposed to put in there? How do i figure out what my webserver is. I have apache2, if that matters, and mysql is running (does that matter?). This is a dedicated linux machine running 11.10.

Sorry if this question is a bit dumb. I'm still learning linux, and I suspect that these instructions are intentionally obtuse because they would prefer to be paid to run these analyses for you instead of running them yourself.

share|improve this question

Apache runs as www-data, not www. Furthermore, /var/www is the webroot of the server, so unless you linked /usr/local/share/stacks/php to the public in some way, you're not going to get it to work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.