Brian,

You're not doing anything wrong. Apache runs as www-data in Ubuntu, so any
file created by Apache will belong to that owner:group.

Add yourself to the www-data group and life will become easier.

Cheers - Miles

On Sat, Oct 24, 2009 at 7:42 PM, Brian Hazelton <bdh_2...@comcast.net>wrote:

> I know this is not quite on topic but I do not know where else to turn. I
> needed to reinstall ubuntu and now I cannot change myself to be the owner of
> var www. I had been able to change myself to the owner of it and create,
> delete and modify any files I wanted before I had to reinstall. Now it seems
> the change is not taking effect. What happens  is I use the sudo chown
> command and it shows that I am the owner. I have a script that creates a
> file when I go to the page and it creates a file and has www-data as the
> owner, not me. What am I doing wrong?
> Thanks,
> Brian
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Miles Thompson
~~~~~~~~~~~~~~~~~~~~~~~~~~
"The piano keys are black and white,
But they sound like a million colours in your mind"
Spider's Web - Katie Melua

Reply via email to