I'm having a problem with Apache 1.3.29.0.2-4 which is running on Linux Debian.
The fact is that i need PHP scripts to be run as the user matching the dir's owner of the domain's document root...
let's put this clear,
# --- httpd.conf ---
# several settings here
# ...
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/
ServerName www.maindomain.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/usr1/public_html/
ServerName www.domain1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/usr2/public_html/
ServerName www.domain2.com
</VirtualHost>
# end of http.conf
when i upload a file by submitting a form i.e. at www.domain1.com then the file's owner will be www-data:www-data.
the won't let php read it then.
I know i can set the default user (www-data) to another user, but that doesn't help since i need that every uploaded (or created by GD) file's owner match the /home/*/public_html user