Re: www-data file
| From: | Aziz Saleh | Date: | Tue, 26 Aug 2014 04:43:28 +0000 |
| Subject: | Re: www-data file | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-48900@lists.php.net to get a copy of this message | ||
On Tue, Aug 26, 2014 at 12:20 AM, Ethan Rosenberg <
erosenberg@hygeiabiomedical.com> 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).