Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 2009 13:31:23 +0100
From:      Nicolas Letellier <nicolas@nicoelro.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Problem when uploading files with Apache
Message-ID:  <20090208133123.401c8d1a.nicolas@nicoelro.net>

next in thread | raw e-mail | index | archive | help
Hello.

I use apache13 with FreeBSD 6.3.
I have some websites, in :
/var/www/sites/site1
/var/www/sites/site2

I use PHP 5 (compiled in apache module).

The rights are:

ls -ls /var/www/sites/site1: www:site1

All files are owned by www user. All files are grouped in site{1,2} group.

I have a php script in /var/www/sites/site1. I call it with www.domain.com/test.php. If, in my php page, I create a folder (in /var/www/sites/site1/), it have www:site1 in rights. Ok, it's good. However, if I create a file, it have www:wheel in rights.

What's the problem?

Apache runs in www:www. I does not have folder grouped in wheel group.

Why Apache set 'wheel' as group when I upload a file?

Do you have advices, solutions... ?

Thanks! 

-- 
 -Nicolas.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090208133123.401c8d1a.nicolas>