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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > How NOT to build Litespeed with FCGI support?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2012, 08:35 AM
Home Alone Home Alone is offline
New Member
 
Join Date: Dec 2011
Posts: 8
Default How NOT to build Litespeed with FCGI support?

I recently switched from an nginx/apache setup to litespeed. I run a very large, very active vbulletin forum with vbseo installed. On my previous setup, php was installed as a dso module and all php applications ran with that configuration. On the litespeed setup, I used the WHM plugin with easyapache integration. I built php as a dso module, but when litespeed builds the matching php binary it seems to be some sort of combination of dso/fcgi. Is that possible? vbseo and photopost are now running via the command line, and apparently as cgi scripts while the main vbulletin forum appears to be running with php as a dso module? This kills the server during peak traffic periods. How can I build the matching php binary and configure it to only use the dso module mode, i.e., completely disable fcgi/cgi?
Reply With Quote
  #2  
Old 01-05-2012, 11:46 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
the matching php built by lsws plugin is lsphp (PHP + LSAPI) combines with best performance and security.

http://www.litespeedtech.com/php-litespeed-sapi.html

if your environment is dedicated, make sure php suEXEC (Admin CP -> Configuration -> Server -> General) is disabled.

check 'EAProc WaitQ' column (Admin CP -> Actions -> Real-Time Stats) and see if it is non-zero during peak hours. Adjust Max Connections in External App -> lsphp5 if EA WaitQ is non-zero consistently.
Reply With Quote
  #3  
Old 01-05-2012, 12:08 PM
Home Alone Home Alone is offline
New Member
 
Join Date: Dec 2011
Posts: 8
I run a database server and a webserver. I have memcache installed and in use for the vbdatasore. XCache is also installed.

The EAProc WaitQ column is always 0, even when the server load skyrockets.

phpsuexec is disabled.

The connection pool under Admin CP -> Actions -> Real-Time Stats -> External Application will occasionally show all available connections in use when the load skyrockets. Max Connections is currently set at 150. I have had it set as high as 300. I lowered it because it seemed that the higher the setting the higher server load.
Reply With Quote
  #4  
Old 01-05-2012, 03:33 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Quote:
Originally Posted by Home Alone View Post
I run a database server and a webserver. I have memcache installed and in use for the vbdatasore. XCache is also installed.

The EAProc WaitQ column is always 0, even when the server load skyrockets.

phpsuexec is disabled.

The connection pool under Admin CP -> Actions -> Real-Time Stats -> External Application will occasionally show all available connections in use when the load skyrockets. Max Connections is currently set at 150. I have had it set as high as 300. I lowered it because it seemed that the higher the setting the higher server load.
If EAProc WaitQ stays 0, there is no need to increase Max Connections (use with care). 35 is the default. bump to 50, or 100 if needed (environment variable PHP_LSAPI_CHILDREN needs to match it). in your case, pls lower to 100.

when server load skyrockets, what takes most cpu cycle in 'top'?
Reply With Quote
  #5  
Old 08-20-2012, 06:30 PM
Home Alone Home Alone is offline
New Member
 
Join Date: Dec 2011
Posts: 8
Quote:
Originally Posted by webizen View Post
If EAProc WaitQ stays 0, there is no need to increase Max Connections (use with care). 35 is the default. bump to 50, or 100 if needed (environment variable PHP_LSAPI_CHILDREN needs to match it). in your case, pls lower to 100.

when server load skyrockets, what takes most cpu cycle in 'top'?
vbseo.php. This is a killer. When I run Apache with php built as a dso the vbseo.php file does not cause load problems. But with Litespeed, vbseo.php runs as a cgi file, which kills the server load. Why is it running as an external application?
Reply With Quote
  #6  
Old 08-21-2012, 10:59 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Quote:
Originally Posted by Home Alone View Post
... Why is it running as an external application?
It is for security.

http://www.litespeedtech.com/php-litespeed-sapi.html

since you have suEXEC disabled, you can leverage opcode cache as well as LSWS build-in cache (http://www.litespeedtech.com/support...ache:vbulletin) for vbseo performance improvement.
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 06:33 AM.



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