How to Set PHP INI Limits Using Environment Variables in OpenLiteSpeed?

#1
Hi,

I want to configure PHP limits in OpenLiteSpeed by using **environment variables**, not by editing or overwriting any `php.ini` files.

Specifically, I want to set values like:

```
memory_limit = 512M
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300
```

I know OpenLiteSpeed uses the `Environment` section under:

**Server Configuration → External App → lsphp**

But I am not sure what is the correct syntax or recommended way to set PHP ini values through environment variables.

Is it correct to use something like this?

```
PHP_VALUE: memory_limit=512M
PHP_VALUE: post_max_size=128M
PHP_VALUE: upload_max_filesize=128M
PHP_VALUE: max_execution_time=300
```

Or is there another environment variable method supported by OpenLiteSpeed to apply PHP ini settings globally or per virtual host?

I want to avoid touching the main php.ini file, and only use the environment variable method.

Thanks!

---
 
Top