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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > FCGI Security and Tweaking

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2011, 08:40 PM
markb1439 markb1439 is offline
Senior Member
 
Join Date: Nov 2009
Posts: 56
Default FCGI Security and Tweaking

I know that, in cPanel, the default FastCGI configuration is said to be insecure because the PHP binary is in each virtual host. In addition, it's said that there is a lot of configuration required to make sure that unused PHP processes do not remain too long.

If I compile EasyApache with FastCGI and activate SuEXEC, and then I switch to LiteSpeed, do these same problems exist? Or does LiteSpeed handle FCGI more securely? And, in LiteSpeed, what settings do I need to tweak?

Thanks,

Mark
Reply With Quote
  #2  
Old 02-04-2011, 09:10 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
suEXEC in LiteSpeed is rather secure.

http://www.litespeedtech.com/support...api_php_suexec
Reply With Quote
  #3  
Old 02-04-2011, 09:14 PM
markb1439 markb1439 is offline
Senior Member
 
Join Date: Nov 2009
Posts: 56
Thanks.

Let me clarify...what is the best way for me to set up the best LiteSpeed configuration for performance and security...

I am used to compiling in EasyApache. Should I continue to do it with suPHP, or should I use FCGI, or does it not even matter which one I choose, since LSAPI will be used in LiteSpeed anyway? Do I need to choose suEXEC in EasyApache, or does that not matter either (because LiteSpeed's architecture will be used instead).

Also, if I use LiteSpeed's cache feature, do I also need an opcode cache, or is that not necessary?

Thanks,

Mark
Reply With Quote
  #4  
Old 02-04-2011, 11:12 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
LSAPI + suEXEC is the best setup you can get (combine with performance and security). You may reference this benchmark comparison:

http://blog.litespeedtech.com/2010/01/

For it to work, you should continue to use suPHP and choose Apache suEXEC since LSWS read Apache configurations from cPanel/WHM.

LiteSpeed cache is for page caching. Opcode cache is still needed.
Reply With Quote
  #5  
Old 02-04-2011, 11:18 PM
markb1439 markb1439 is offline
Senior Member
 
Join Date: Nov 2009
Posts: 56
Thank you.

Which opcode cache would you recommend? Will it work even though I compiled with suPHP? I know that, on Apache, an opcode cache will not work with suPHP.

Mark
Reply With Quote
  #6  
Old 02-07-2011, 11:26 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
EAccelerator. You need to build matching php in LSWS (LSAPI + PHP) along with EA extension. So no need to worry about suPHP.

Use the following thread for your reference:

http://www.litespeedtech.com/support...hp/t-4431.html
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 04:39 PM.



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