Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next 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/13 22:44] Jackson Zhang |
||
---|---|---|---|
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. Special Apache directive LS_EXTAPP_ENV on cpanel to override External application environment variables ===== | ||
+ | |||
+ | On CPanel or other control panel environment, you may have set up "PHP_INI_SCAN_DIR" as step 3 and also set up "PHP_INI_SCAN_DIR" as step 1. LSWS will use "PHP_INI_SCAN_DIR" from external app environment instead of Apache directives. Is there any way to override the external app environment? Starting from LSWS 5.3.4, a new special apache directive "LS_EXTAPP_ENV" has been introduced for this purpose. You can place it in Apache virtual host include file to override external app environment settings. | ||
+ | |||
+ | For example, you have set the following in external app environment: | ||
+ | PHP_INI_SCAN_DIR=/home/USER1/public_html | ||
+ | but if you want to override it to another location as "/home/USER1/data", you can add the following to Apache virtual host include file: | ||
+ | <IfModule Litespeed> | ||
+ | LS_EXTAPP_ENV PHP_INI_SCAN_DIR=/home/USER1/data/ | ||
+ | </IfModule> | ||
===== Notes ===== | ===== Notes ===== |