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

Go Back   LiteSpeed Support Forums > External Applications > PHP > 'force gid' not working

Reply
 
Thread Tools Display Modes
  #21  
Old 03-17-2009, 11:33 AM
gosborne gosborne is offline
New Member
 
Join Date: Mar 2009
Posts: 5
I tried that earlier today to no avail. Are there any logs or settings that may help that I can give you?
Reply With Quote
  #22  
Old 03-17-2009, 11:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
What's your "force gid" configuration, does the gid exist in /etc/group?

Let you php script run shell command "id" to dump the uid and gids, you can PM me the result.
Reply With Quote
  #23  
Old 03-17-2009, 02:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
From the information in your PM, looks like your PHP is not running in suEXEC mode, so, everything run as the default server UID.
If you configure your vhosts natively from LSWS console, you should add a VHost Level lsphp_$VH_NAME external app, and corresponding script handler configuration for ".php".
The easiest way is to use our PHP suEXEC vhost template.
Reply With Quote
  #24  
Old 03-17-2009, 02:10 PM
gosborne gosborne is offline
New Member
 
Join Date: Mar 2009
Posts: 5
I believe I have all of that set up correctly already too :-/

LiteSpeed API App Definition Edit Delete Back
Name PHP5
Address uds://tmp/lshttpd/$VH_NAME_lsphp.sock
Notes Not Set
Max Connections 5
Environment Not Set
Initial Request Timeout (secs) 180
Retry Timeout (secs)0
Persistent Connection Yes
Connection Keepalive Timeout30
Response Buffering No
Auto Start Yes
Command $SERVER_ROOT/fcgi-bin/lsphp
Back Log 10
Instances 5
Run On Start Up No
Max Idle Time 60
Priority 0
Memory Soft Limit 200M
Memory Hard Limit (bytes) 250M
Process Soft Limit 100
Process Hard Limit 200

and for the handler

Suffixes: php
Handler type: Litespeed API
Handler name: [server level]: lsphp5

should that be vhost level php5? when i switch it to that I get no output whatsoever when i load the page.
Reply With Quote
  #25  
Old 03-17-2009, 02:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, should vhost level php5. The command maybe should be

$SERVER_ROOT/fcgi-bin/lsphp5
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 11:57 PM.



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