Differences

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

Link to this comparison view

Both sides previous revision Previous revision
litespeed_wiki:php:per-user-php-ini [2018/11/14 15:31]
Lisa Clarke [7. Special Apache directive LS_EXTAPP_ENV on cpanel to override External application environment variables] Proofreading
litespeed_wiki:php:per-user-php-ini [2019/05/28 18:12]
Jackson Zhang
Line 58: Line 58:
 **Note:​** ​ **Note:​** ​
    * Using this method will cause LSWS to ignore any global php.ini files and only use the user-defined php.ini. However, if no user-defined php.ini found, LSWS will still use global php.ini  ​    * Using this method will cause LSWS to ignore any global php.ini files and only use the user-defined php.ini. However, if no user-defined php.ini found, LSWS will still use global php.ini  ​
 +
 +Starting from LSWS 5.3.x, LSWS may automatically configure external applications and script handlers for control panels, hence it may not have external applications or script handlers anymore. If you want to define PHPRC environment variable for all external applications,​ you can use ''​PHP''​ tab:
 +{{ :​litespeed_wiki:​php:​lsws-5.3.x-php-tab.png?​800 |}}
 + 
  
 ===== 3. Define PHP_INI_SCAN_DIR at the Server Level in the WebAdmin Console ===== ===== 3. Define PHP_INI_SCAN_DIR at the Server Level in the WebAdmin Console =====
Line 78: Line 82:
   * This method is not recommended if you replace Apache with suPHP. When replacing Apache with suPHP, the PHPRC environment variable is recommended.   * This method is not recommended if you replace Apache with suPHP. When replacing Apache with suPHP, the PHPRC environment variable is recommended.
   * The PHP_INI_SCAN_DIR environment variable is available for PHP 5.2.7 and up.   * The PHP_INI_SCAN_DIR environment variable is available for PHP 5.2.7 and up.
 +
 +Starting from LSWS 5.3.x, LSWS may automatically configure external applications and script handlers for control panels, hence it may not have external applications or script handlers anymore. If you want to define ''​PHPRC''​ environment variable for all external applications,​ you can use ''​PHP''​ tab.
  
 ===== 4. Define PHPRC in Apache Configs ===== ===== 4. Define PHPRC in Apache Configs =====
  • Admin
  • Last modified: 2019/05/28 18:12
  • by Jackson Zhang