Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:php:configuring-lsws-for-php [2018/09/18 20:47]
Michael Alegre [Step 1: Install PHP through repositories]
litespeed_wiki:php:configuring-lsws-for-php [2019/06/20 13:41]
Jackson Zhang [Step 2: Set the external application]
Line 51: Line 51:
       <​note></​note>​       <​note></​note>​
       <​maxConns>​35</​maxConns>​       <​maxConns>​35</​maxConns>​
-      <​env>​PHP_LSAPI_MAX_REQUESTS=500</​env>​+      <​env>​PHP_LSAPI_MAX_REQUESTS=5000</​env>​
       <​env>​PHP_LSAPI_CHILDREN=35</​env>​       <​env>​PHP_LSAPI_CHILDREN=35</​env>​
       <​initTimeout>​60</​initTimeout>​       <​initTimeout>​60</​initTimeout>​
Line 90: Line 90:
 ===== Step 4: Perform a Graceful Restart ===== ===== Step 4: Perform a Graceful Restart =====
 Perform a graceful restart to apply these changes and begin using the defined external application for scripts matching the suffix set in the related script handler. This can be done in the WebAdmin Console under **Actions > Graceful Restart**. Perform a graceful restart to apply these changes and begin using the defined external application for scripts matching the suffix set in the related script handler. This can be done in the WebAdmin Console under **Actions > Graceful Restart**.
 +
 +
 +===== How to enable PHP SuEXEC on LSWS native =====
 +If you want to run PHP as user:group instead of webserver user such as ''​nobody'',​ you will need to create external apps (name should be unique and different than server level external apps and other virtual host external apps, for example, lsphp_$vhost;​ also set it to run as username:​usergroup to implement PHP SuEXEC) and script handler pointing to the newly created external app under each virtual host.
 +{{ :​litespeed_wiki:​php:​lsws-navie-php-suexec.png?​800 |}}
  • Admin
  • Last modified: 2019/10/18 20:27
  • by Jonathan Kagan