Ubuntu and Apache
am 25.10.2009 00:42:27 von Brian Hazelton
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
Re: Ubuntu and Apache
am 25.10.2009 01:03:59 von Miles Thompson
--0016e6d7ef1600bad60476b658b6
Content-Type: text/plain; charset=ISO-8859-1
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 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
--0016e6d7ef1600bad60476b658b6--