Hello. I am running PHP 4.1.2 on Debian Linux with Apache 1.3.26.
Files uploaded via PHP and placed in a destination directory via move_upoaded_file are not owned by the script owner. Instead, they are owned by the user that Apache server is running as. From what I understand, this is the normal behaviour, determined at the server level, and would not be the case if a seperate instance of Apache was running for each virtual host as it's corresponding virtual user.
Is there not a way for php, installed as a module and a single Apache process, to act in a 'suexec'-esque fashion? I would like for the files and directories created or otherwise placed on the server via PHP to be owned by the script owner, a.k.a. the user associated with that virtual host.
This would be much more compliant to the Linux scheme of file ownership and access rights. Plus the uploaded files would actually count towards any user quotas!
Thanks in advance for any advice or suggestions given!