Actions

Overriding php.ini Values

From OpenLiteSpeed Wiki

Revision as of 18:47, 16 May 2018 by Jackson (talk | contribs) (Created page with "== php.ini Override function == In Apache, you can override php.ini value through apache virtual host configuration file or .htaccess. Starting from 1.4.32, OpenLiteSpeed prov...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

php.ini Override function

In Apache, you can override php.ini value through apache virtual host configuration file or .htaccess. Starting from 1.4.32, OpenLiteSpeed provides similar function through OpenLiteSpeed web admin interface, either at virtual host level (similar to apache virtual host configuration) or at context level ( similar to Apache .htacesss at different directories ).

At virtual host -> general -> php.ini Override, you can place your directives here, such as:

 php_value include_path ".:/usr/local/lib/php"
 php_admin_flag engine on
 php_admin_value open_basedir "/usr/local/lsws"
 ...
 etc.

Ols-vh-php.ini-override.PNG

or you can place your directives at context level -> php.ini Override

Ols-context-php.ini-override.PNG

Check phpinfo page to verify:

Ols-php.ini-override-verify.PNG