Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

 
 apache on linux, who to run PHPs as
Author:  (---.fibertel.com.ar)
Date:   05-06-04 09:23

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

if it's not clear just ask.

thx in advance!

 Topics Author  Date
 apache on linux, who to run PHPs as  new
federico 05-06-04 09:23 
Go to Top  |  Go to Topic  |  Flat View  |  Search 
  |  
New Topic
 Reply To This Message
 Your Name:
 Your Email:
 Subject:
Email replies to this thread, to the address above.
    

Provided By
Phorum