[solved] PHP uploads not setting owner/group

#1
I have my virtual hosts set up to run off DocRoot UID (so that domain may only access files on that domain via PHP) but it seems that when a file is uploaded it is not owned by the DocRoot UID. This causes 403 access forbidden errors and is very frustrating - what am I doing wrong here :(
 
Last edited by a moderator:
#4
please check your php suExec setting.
Server->General->Using Apache Configuration File->PHP suEXEC

should be Yes in your case.
Thanks for the quick response! I've enabled it as instructed but files are still missing their owner, as shown by the log:

Code:
[68.xx.xx.xx:39176-0#sitename] owner of file does not match owner of vhost, path [/home/sitename/html/assets/files/86.swf], access denied.
This site is set up in the following way:

/home/sitename/conf/
/home/sitename/html/

the PHP_suEXEC template is as follows:

http://b.elup.me/UkhQ-zsX.png

thanks!

EDIT: To clarify, do I need to map each virtual host, or do I just need to map the listener they belong to?
 
Last edited:
#6
you're using vhost template. please show the screenshot of the problem vhost's Basic->Security

mainly to check "ExtApp Set UID Mode"
sorry for the delay, I figured it out now.

You have to set up each site under the template, I thought you set up each site as a vhost and then set it to use the template!
 
Top