LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] PHP uploads not setting owner/group

Reply
 
Thread Tools Display Modes
  #1  
Old 11-13-2012, 04:37 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Default [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

Last edited by NiteWave; 12-02-2012 at 05:24 PM..
Reply With Quote
  #2  
Old 11-13-2012, 04:38 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
(this was not a problem with NGINX)
Reply With Quote
  #3  
Old 11-13-2012, 04:59 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
please check your php suExec setting.
Server->General->Using Apache Configuration File->PHP suEXEC

should be Yes in your case.
Reply With Quote
  #4  
Old 11-13-2012, 05:15 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Quote:
Originally Posted by NiteWave View Post
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 by Banana Lord.; 11-13-2012 at 05:20 PM..
Reply With Quote
  #5  
Old 11-13-2012, 08:34 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
you're using vhost template. please show the screenshot of the problem vhost's Basic->Security

mainly to check "ExtApp Set UID Mode"
Reply With Quote
  #6  
Old 12-02-2012, 08:10 AM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Quote:
Originally Posted by NiteWave View Post
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!
Reply With Quote
  #7  
Old 12-02-2012, 05:24 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Thanks for your update!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:28 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.