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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > CGI File UID - works/how it works?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2009, 02:11 PM
kolorafa kolorafa is offline
Member
 
Join Date: Jan 2008
Posts: 13
Default CGI File UID - works/how it works?

i am testing some configurations and i read:

"File UID, set user/group id of external application process based on the user/group id of the external application executable; "

i add lsapi and set command to my own php file with specific uid/gid

and php start with global uid, not with executable uid and not with docroot uid

Why it does not start ? Maybe i readied it wrong?

Thx for answer and help.

Last edited by kolorafa; 02-06-2009 at 02:39 PM.. Reason: to make it brighter
Reply With Quote
  #2  
Old 02-09-2009, 09:48 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You need to set "ExtApp Set UID Mode" to "Doc Root UID"
http://www.litespeedtech.com/docs/we...st/#setUidMode

and define the external app at vhost level.
Reply With Quote
  #3  
Old 02-13-2009, 12:45 PM
kolorafa kolorafa is offline
Member
 
Join Date: Jan 2008
Posts: 13
Default hmm...

i have external php in vhost level and i use "Doc Root UID" for about 1-2 year this option, but i need/want to spawn php with different uid/gid so i look and see

File UID

so i test it and it doesn't work .. or maybe am i some miss understanding ?

if i change to "Doc Root UID" it spawn with uid from directory, if i set to File UID or Server UID it spawn with "apache" (server uid)

its normal or this not working in free version of ls?
Reply With Quote
  #4  
Old 02-13-2009, 01:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
File UID option does not work with PHP. For PHP, only "Doc root UID" or "Server UID" will work.
Reply With Quote
  #5  
Old 02-13-2009, 02:41 PM
kolorafa kolorafa is offline
Member
 
Join Date: Jan 2008
Posts: 13
so thats why it says "CGI File UID"

thanks for fast answer and your time
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 02:08 AM.



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