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
litespeed_wiki:php:per-user-php-ini [2018/09/14 16:03]
Michael Alegre [Notes]
litespeed_wiki:php:per-user-php-ini [2018/11/14 15:31] (current)
Lisa Clarke [7. Special Apache directive LS_EXTAPP_ENV on cpanel to override External application environment variables] Proofreading
Line 104: Line 104:
  
 This directive is supported since PHP LSAPI version V6.10. This directive is supported since PHP LSAPI version V6.10.
 +
 +===== 7. Override External Application Environment Variables =====
 +The special Apache directive ''​LS_EXTAPP_ENV''​ can be used on cPanel or other control panel environments to override External application environment variables.
 +
 +If you have set up ''​PHP_INI_SCAN_DIR''​ in step 3, and ''​PHP_INI_SCAN_DIR''​ in step 1, LSWS will use ''​PHP_INI_SCAN_DIR''​ from an external app environment instead of using Apache directives. Starting from LSWS 5.3.4, you can override this external app environment using a new special Apache directive: ''​LS_EXTAPP_ENV''​. Place the directive in the Apache virtual host include file, like so:
 +
 +For example, say you have set the following in an external app environment:​
 +  PHP_INI_SCAN_DIR=/​home/​USER1/​public_html
 +If you want to override it to another location, such as ''/​home/​USER1/​data'',​ you can add the following to the Apache virtual host include file:
 +  <​IfModule Litespeed>​
 +  LS_EXTAPP_ENV PHP_INI_SCAN_DIR=/​home/​USER1/​data/​
 +  </​IfModule>​
  
 ===== Notes ===== ===== Notes =====
 
litespeed_wiki/php/per-user-php-ini.1536941016.txt.gz · Last modified: 2018/09/14 16:03 by Michael Alegre