Search Help Board

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:  (
Date:   05-06-04 09:23

I'm having a problem with Apache 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/
<VirtualHost *:80>
DocumentRoot /home/usr1/public_html/
<VirtualHost *:80>
DocumentRoot /home/usr2/public_html/
# end of http.conf

when i upload a file by submitting a form i.e. at 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:
Email replies to this thread, to the address above.

Provided By