• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP 5.3 Run as FastCGi Application

wisw

New Pleskian
Hello,
I setup PHP support to Run as FastCGi Application,
and i setup the memory_limit=32M in DOMAIN/etc/php.ini,
then i create a php program with ini_set('memory_limit','128M'),
it does not according to my settings are limited.
How can i limit it , only just use the disable_function = 'ini_set' ?
or Was there other methods ?
Because,
When PHP runs as apache module , i can use the php_admin_value in vhost.conf to limit what i want , it does not limit everything like this (disable_function).

any ideas,

many thanks
 
But this does not solve my problem.
I understand its relationship about php.ini.
I just want if i setup the memory_limit = 123M in php.ini and then php programs can not use the ini_set() to setup its wanted with php runs as fastcgi application.
 
If you would like to disallow ALL "ini_set" possibilities, then your restriction is correct. If you just want to disable the single ini_set for the memory usage, you could do this over suhosin ( suhosin.memory_limit ).
 
Back
Top