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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > suphp ?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2010, 09:13 AM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
Cool suphp ?

i am having little issues of spam , in apache we enable suphp to replace "nobody" with account name , how can this be done in litespeed ?
Reply With Quote
  #2  
Old 02-13-2010, 06:29 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,287
Server-->General-->PHP suEXEC:Yes
Reply With Quote
  #3  
Old 02-13-2010, 09:47 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
i tried it but sites ending showing permission errors thought i made all folders 0755 still
Reply With Quote
  #4  
Old 02-13-2010, 09:53 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,287
the detail error message? may need investigate them one by one.
Reply With Quote
  #5  
Old 02-13-2010, 10:11 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
generally in suphp it used to be permission issues where folder with 0777 has to be changed to 0755 is it not same here ? and i see two options per home directory or whole which is good ?
Reply With Quote
  #6  
Old 02-13-2010, 10:26 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,287
Quote:
Originally Posted by bhanuprasad1981 View Post
and i see two options per home directory or whole which is good ?
From the menu tips:

"When set to yes, PHP script will be executed under the user specified, as well as the group unless Force GID is set.

When set to "User's Home Directory Only", scripts outside a user's home directory will run as the global user/group that the web server run as. "

you can try either of them, see which fits your site best.
Reply With Quote
  #7  
Old 02-15-2010, 11:46 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Quote:
Originally Posted by bhanuprasad1981 View Post
i tried it but sites ending showing permission errors thought i made all folders 0755 still
If Apache suPHP works properly, Litespeed PHP suEXEC should work equally well. You also need to take care of the permission of parent directory as well.
Reply With Quote
  #8  
Old 05-21-2010, 05:45 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
We presently run Apache2.2 with PHP 5.2.x in suPHP with modsecurity. Our servers have been running this configuration for quite a long time now with hundreds of clients each. I have read nothing but rave reviews regarding LiteSpeed Enterprise. From what I gather from LiteSpeed threads and articles I can drop LiteSpeed in to replace Apache. Is this entirely true? What issues may we encounter with clients configurations? Custom php.ini's no longer work correct? Is the LiteSpeed suxec mode using the phpsuexec? Is phpsuexec still even being developed?

What are the performance benefits of LiteSpeed php suexec vs Apache22 suPHP?


Thank you.
Reply With Quote
  #9  
Old 05-22-2010, 12:20 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,287
My understanding, mod_php/phpSuExec/suPHP are 3 different apache modules.

in which, mod_php has best performance, suPHP is slowest since it run as CGI.

lsphp is php with LSAPI to work with litespeed web server. It can run as global user/group(e.g. nobody) which is like mod_php, also it can run in suExec mode as user's privilege. and they can run at the same time --- some lsphp processes run as global user, while some lsphp processes run in suExec mode.

We did some bechmark tests regarding various PHP a few months back, and posted the result on our blog:
http://blog.litespeedtech.com/2010/0...ache-vs-nginx/

Litespeed is apache interchangeable. however, you need rebuild php with LSAPI to work with litespeed. custom php.ini should work as before and no need change, or minimum change only -- for example, the php extension's directory.
Reply With Quote
  #10  
Old 05-23-2010, 11:28 AM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
I already understand the difference in the modules. Your response does not address all of my inquiries.

So you are saying custom php.ini files in an accounts folder now work? I have read in other threads this no longer works and users must convert their custom php.ini files into .htaccess

I have already read the benchmark at that address, where does it compare LiteSpeed with phpSuExec vs Apache2.2 suPHP?

is phpSuExec even still being developed?

Quote:
Originally Posted by NiteWave View Post
My understanding, mod_php/phpSuExec/suPHP are 3 different apache modules.

in which, mod_php has best performance, suPHP is slowest since it run as CGI.

lsphp is php with LSAPI to work with litespeed web server. It can run as global user/group(e.g. nobody) which is like mod_php, also it can run in suExec mode as user's privilege. and they can run at the same time --- some lsphp processes run as global user, while some lsphp processes run in suExec mode.

We did some bechmark tests regarding various PHP a few months back, and posted the result on our blog:

Litespeed is apache interchangeable. however, you need rebuild php with LSAPI to work with litespeed. custom php.ini should work as before and no need change, or minimum change only -- for example, the php extension's directory.
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 10:13 PM.



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