php fcgi

Druciak

Active Member
#1
Hi,

I have problem with php-fcgi on my LiteSpeed Web Server Enterprise (2-CPU)

It's my configuration:

<extProcessorList>
<extProcessor>
<type>fcgi</type>
<name>Domain1</name>
<address>uds://tmp/lshttpd/$VH_NAME.sock</address>
<note></note>
<maxConns>45</maxConns>
<env>PHP_FCGI_CHILDREN=45</env>
<env>PHP_FCGI_MAX_REQUESTS=10000</env>
<initTimeout>180</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn>1</persistConn>
<pcKeepAliveTimeout>90</pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>/usr/bin/php.fcgi -c /etc/php/php-domain1.ini</path>
<backlog>100</backlog>
<instances>1</instances>
<runOnStartUp></runOnStartUp>
<extMaxIdleTime>90</extMaxIdleTime>
<priority></priority>
<memSoftLimit>250M</memSoftLimit>
<memHardLimit>300M</memHardLimit>
<procSoftLimit>0</procSoftLimit>
<procHardLimit>0</procHardLimit>
</extProcessor>
</extProcessorList>

Everything works perfectly except that sometimes it slows down and the load averadge of the server increases.

please look on my cacti graph


I'm going to check php with lsapi in the future. At the moment I can't do it.

Could you please advise me something?
 

mistwang

LiteSpeed Staff
#2
It might be PHP script or MySQL performance issue, all PHP processes has been blocked for some reason, so the waitQ goes up.

Do you have any abnormal error message in your error.log, stderr.log?

Should give LSAPI PHP a try ASAP.
 
Top