Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:plesk:php_guide:multi-php-config [2016/02/04 19:43]
Jackson Zhang created
litespeed_wiki:plesk:php_guide:multi-php-config [2016/07/18 19:55] (current)
Jackson Zhang
Line 2: Line 2:
 You can create lsphp5x one by one from LSWS Admin console. If you prefer using the command line instead of the GUI tool, you can edit the LSWS configuration file (usually /​usr/​local/​lsws/​conf/​httpd_config.xml) by adding the following to the <​extProcessorList>​… </​extProcessorList>​ section: ​ You can create lsphp5x one by one from LSWS Admin console. If you prefer using the command line instead of the GUI tool, you can edit the LSWS configuration file (usually /​usr/​local/​lsws/​conf/​httpd_config.xml) by adding the following to the <​extProcessorList>​… </​extProcessorList>​ section: ​
  
 +    <​extProcessor>​
 +      <​type>​lsapi</​type>​
 +      <​name>​lsphp70</​name>​
 +      <​address>​uds://​tmp/​lshttpd/​lsphp70.sock</​address>​
 +      <​maxConns>​35</​maxConns>​
 +      <​env>​PHP_LSAPI_MAX_REQUESTS=5000</​env>​
 +      <​env>​PHP_LSAPI_CHILDREN=35</​env>​
 +      <​initTimeout>​60</​initTimeout>​
 +      <​retryTimeout>​0</​retryTimeout>​
 +      <​persistConn>​1</​persistConn>​
 +      <​respBuffer>​0</​respBuffer>​
 +      <​autoStart>​1</​autoStart>​
 +      <​path>/​opt/​plesk/​php/​7.0/​bin/​lsphp</​path>​
 +      <​backlog>​100</​backlog>​
 +      <​instances>​1</​instances>​
 +      <​extMaxIdleTime>​10</​extMaxIdleTime>​
 +      <​priority>​0</​priority>​
 +      <​memSoftLimit>​2048M</​memSoftLimit>​
 +      <​memHardLimit>​2048M</​memHardLimit>​
 +      <​procSoftLimit>​400</​procSoftLimit>​
 +      <​procHardLimit>​500</​procHardLimit>​
 +    </​extProcessor>​
     <​extProcessor>​     <​extProcessor>​
       <​type>​lsapi</​type>​       <​type>​lsapi</​type>​
Line 14: Line 36:
       <​respBuffer>​0</​respBuffer>​       <​respBuffer>​0</​respBuffer>​
       <​autoStart>​1</​autoStart>​       <​autoStart>​1</​autoStart>​
-      <​path>​$SERVER_ROOT/lsphp56/​bin/​lsphp</​path>​+      <​path>/​opt/​plesk/​php/​5.6/​bin/​lsphp</​path>​
       <​backlog>​100</​backlog>​       <​backlog>​100</​backlog>​
       <​instances>​1</​instances>​       <​instances>​1</​instances>​
Line 36: Line 58:
       <​respBuffer>​0</​respBuffer>​       <​respBuffer>​0</​respBuffer>​
       <​autoStart>​1</​autoStart>​       <​autoStart>​1</​autoStart>​
-      <​path>​$SERVER_ROOT/lsphp55/​bin/​lsphp</​path>​+      <​path>/​opt/​plesk/​php/​5.5/​bin/​lsphp</​path>​
       <​extMaxIdleTime>​10</​extMaxIdleTime>​       <​extMaxIdleTime>​10</​extMaxIdleTime>​
       <​memSoftLimit>​2048M</​memSoftLimit>​       <​memSoftLimit>​2048M</​memSoftLimit>​
Line 55: Line 77:
       <​respBuffer>​0</​respBuffer>​       <​respBuffer>​0</​respBuffer>​
       <​autoStart>​1</​autoStart>​       <​autoStart>​1</​autoStart>​
-      <​path>/​usr/local/lsws/lsphp54/​bin/​lsphp</​path>​+      <​path>/​opt/plesk/php/5.4/​bin/​lsphp</​path>​
       <​extMaxIdleTime>​10</​extMaxIdleTime>​       <​extMaxIdleTime>​10</​extMaxIdleTime>​
       <​memSoftLimit>​2048M</​memSoftLimit>​       <​memSoftLimit>​2048M</​memSoftLimit>​
Line 74: Line 96:
       <​respBuffer>​0</​respBuffer>​       <​respBuffer>​0</​respBuffer>​
       <​autoStart>​1</​autoStart>​       <​autoStart>​1</​autoStart>​
-      <​path>/​usr/local/lsws/lsphp53/​bin/​lsphp</​path>​+      <​path>/​opt/plesk/php/5.3/​bin/​lsphp</​path>​
       <​extMaxIdleTime>​10</​extMaxIdleTime>​       <​extMaxIdleTime>​10</​extMaxIdleTime>​
       <​memSoftLimit>​2048M</​memSoftLimit>​       <​memSoftLimit>​2048M</​memSoftLimit>​
Line 93: Line 115:
       <​respBuffer>​0</​respBuffer>​       <​respBuffer>​0</​respBuffer>​
       <​autoStart>​1</​autoStart>​       <​autoStart>​1</​autoStart>​
-      <​path>/​usr/loca/lsws/lsphp52/​bin/​lsphp</​path>​+      <​path>/​opt/plesk/php/5.2/​bin/​lsphp</​path>​
       <​extMaxIdleTime>​10</​extMaxIdleTime>​       <​extMaxIdleTime>​10</​extMaxIdleTime>​
       <​memSoftLimit>​2048M</​memSoftLimit>​       <​memSoftLimit>​2048M</​memSoftLimit>​
  • Admin
  • Last modified: 2016/02/04 19:43
  • by Jackson Zhang