Hi!
I am trying to run 2 instances of PHP5 on my server, by binding them to different sockets. Here is the external hander configuration:
Original PHP5:
PHP with Zend Optimizer:
Script handler:
But when trying to open a .phpzend file, I get a 503 error and this in the error log:
2009-05-12 14:15:40.100 [NOTICE] [80.76.56.29:2302-0#APVH_xxx.com:80] connection to [uds://tmp/lshttpd/lsphp5zend.sock] on request #0, confirmed: 0, Connection timed out!
However /tmp/lshttpd/lsphp5zend.sock exists!
Any suggestions?
I am trying to run 2 instances of PHP5 on my server, by binding them to different sockets. Here is the external hander configuration:
Original PHP5:
Code:
<extProcessor>
<type>lsapi</type>
<name>lsphp5</name>
<address>uds://tmp/lshttpd/lsphp5.sock</address>
<note></note>
<maxConns>100</maxConns>
<env>PHP_LSAPI_MAX_REQUESTS=100</env>
<env>PHP_LSAPI_CHILDREN=100</env>
<env>LSAPI_MAX_PROCESS_TIME=300</env>
<env>LSAPI_AVOID_FORK=1</env>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn>1</persistConn>
<pcKeepAliveTimeout></pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>$SERVER_ROOT/fcgi-bin/lsphp5 -c /usr/local/lsws/lsphp5/lib/cache.conf/php.ini</path>
<backlog>100</backlog>
<instances>1</instances>
<extUser></extUser>
<extGroup></extGroup>
<runOnStartUp>1</runOnStartUp>
<extMaxIdleTime></extMaxIdleTime>
<priority>-1</priority>
<memSoftLimit>250M</memSoftLimit>
<memHardLimit>300M</memHardLimit>
<procSoftLimit>200</procSoftLimit>
<procHardLimit>200</procHardLimit>
</extProcessor>
Code:
<extProcessor>
<type>lsapi</type>
<name>lsphp5zend</name>
<address>uds://tmp/lshttpd/lsphp5zend.sock</address>
<note></note>
<maxConns>100</maxConns>
<env>PHP_LSAPI_MAX_REQUESTS=100</env>
<env>PHP_LSAPI_CHILDREN=100</env>
<env>LSAPI_MAX_PROCESS_TIME=300</env>
<env>LSAPI_AVOID_FORK=1</env>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn>1</persistConn>
<pcKeepAliveTimeout></pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>$SERVER_ROOT/fcgi-bin/lsphp5 -b /tmp/lshttpd/lsphp5zend.sock -c /usr/local/lsws/lsphp5/lib/zend.conf/php.ini</path>
<backlog>100</backlog>
<instances>1</instances>
<extUser></extUser>
<extGroup></extGroup>
<runOnStartUp>1</runOnStartUp>
<extMaxIdleTime></extMaxIdleTime>
<priority>-1</priority>
<memSoftLimit>250M</memSoftLimit>
<memHardLimit>300M</memHardLimit>
<procSoftLimit>200</procSoftLimit>
<procHardLimit>200</procHardLimit>
</extProcessor>
Code:
<scriptHandler>
<suffix>phpzend</suffix>
<type>lsapi</type>
<handler>lsphp5zend</handler>
<note></note>
</scriptHandler>
2009-05-12 14:15:40.100 [NOTICE] [80.76.56.29:2302-0#APVH_xxx.com:80] connection to [uds://tmp/lshttpd/lsphp5zend.sock] on request #0, confirmed: 0, Connection timed out!
However /tmp/lshttpd/lsphp5zend.sock exists!
Any suggestions?