I have Nginx + php-fpm + Mysql. With the php memory settings, I always set this in php.ini like this:
memory_limit = 256M
Now, I bumped into another similar looking setting in pool.d/www.conf
file like this:
;php_admin_value[memory_limit] = 32M
My questions:
Although the doc says what that does, I couldnt read anywhere on what's the difference between memory_limit setting in php.ini
and the php_admin_value[memory_limit]
in www.conf
?
Do I need to set both or setting both makes it redundant?
Under what scenario do I need to specify the limit in php_admin_value[memory_limit]
instead of adding it to memory_limit
in php.ini
?
Can someone clear my confusion please?