Restrict Overriding memory_limit in php.ini
Posted
by
Rohit Batra
on Server Fault
See other posts from Server Fault
or by Rohit Batra
Published on 2014-05-27T06:20:47Z
Indexed on
2014/05/27
15:30 UTC
Read the original article
Hit count: 283
php.ini
We have a issue that just came to our notice, some of our developers used ini_set('memory_limit', -1) to over-ride the php.ini memory_limit settings in their code files.
Due to which sometimes our Memory/CPU usage is way far more than usual and we even have experienced server hanging/crashing many times.
Is there any way to restrict these changes for certain params like memory_limit, upload_max_filesize & post_max_size? Users should not be able to edit them after a certain limit set?
Sorry if i asked a dumb question, tried searching but there was no reference to this only found answers asking for increasing these parameters.
© Server Fault or respective owner