Actions

Overriding php.ini Values

From OpenLiteSpeed Wiki

The php.ini Override Function

In Apache, you can override php.ini values through Apache's virtual host configuration file or .htaccess file. Starting with v1.4.32, OpenLiteSpeed provides a similar function through the OpenLiteSpeed Web Admin interface. Access the function either at the virtual host level (similar to Apache's virtual host configuration) or at the context level (similar to Apache's .htacesss file for different directories).

Navigate to Virtual Host > General > php.ini Override and place your directives there. For example:

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

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.php to verify:

Ols-php.ini-override-verify.PNG