How to disable PHP's ini_set for specific configuration options?

Posted by Dunedan on Server Fault See other posts from Server Fault or by Dunedan
Published on 2011-11-27T00:35:11Z Indexed on 2011/11/27 1:52 UTC
Read the original article Hit count: 438

Filed under:
|

I'm running a setup with PHP 5.3.8 and use php-fpm with it's chroot functionality to separate multiple customers. So each customer has it's own chrooted PHP-environment, which is quite fine.

I now want to disallow that a customer can change the *memory_limit* of his PHP-instance by using *ini_set*. On the other hand I don't want to disable *ini_set* completely. So I'm searching for a possibility to disable the possibility to set specific PHP configuration options (like *memory_limit*) via *ini_set*.

Does somebody know how to achieve that?

© Server Fault or respective owner

Related posts about php

Related posts about chroot