LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   [solved] PHP uploads not setting owner/group (http://www.litespeedtech.com/support/forum/showthread.php?t=6369)

Banana Lord. 11-13-2012 04:37 PM

[solved] PHP uploads not setting owner/group
 
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 :(

Banana Lord. 11-13-2012 04:38 PM

(this was not a problem with NGINX)

NiteWave 11-13-2012 04:59 PM

please check your php suExec setting.
Server->General->Using Apache Configuration File->PHP suEXEC

should be Yes in your case.

Banana Lord. 11-13-2012 05:15 PM

Quote:

Originally Posted by NiteWave (Post 35963)
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?

NiteWave 11-13-2012 08:34 PM

you're using vhost template. please show the screenshot of the problem vhost's Basic->Security

mainly to check "ExtApp Set UID Mode"

Banana Lord. 12-02-2012 08:10 AM

Quote:

Originally Posted by NiteWave (Post 35972)
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!

NiteWave 12-02-2012 05:24 PM

Thanks for your update!


All times are GMT -7. The time now is 03:52 PM.