Re: [PHP-DB] www-data file

[email protected] (Aziz Saleh) Tue, 26 Aug 2014 00:43:28 -0400
Newsgroups php.db
Message-ID <CAPJtNhWiUFPKgBWeoo31_2BViwK47XAXFRzBDp44pyLxLGKncw@mail.gmail.com>
On Tue, Aug 26, 2014 at 12:20 AM, Ethan Rosenberg <
[email protected]> wrote:

> Dear list -
>
> When I use  fopen, the  file owner and group are both www-data.
>
> How can I ensure that the owner and group will be ethan?
>
> TIA
>
> Ethan
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Use chown/chgrp after the fact:
http://php.net/manual/en/function.chown.php
http://php.net/manual/en/function.chgrp.php

If you want it to be ethan by default, something which I would never do or
recommend to do for obvious security reasons you will need to modify your
Apache environment variables (find where the configs are set by using grep,
for example: grep www- /etc/apache2/apache2.conf).