Overriding php.ini Values

From OpenLiteSpeed Wiki

(Redirected from Php.ini override)

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"


Or you can place your directives at Context Level > php.ini Override.


Check phpinfo.php to verify: