Problem when uploading files with Apache

Nicolas Letellier nicolas at nicoelro.net
Sun Feb 8 04:31:26 PST 2009


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.


More information about the freebsd-questions mailing list