PHP : settings memory_limits > 1024M does not work

前端 未结 5 1943
無奈伤痛
無奈伤痛 2020-11-29 03:06

For bads reasons I need to set memory_limits higher than 1G for a directory, but on my PHP 5.2.17 on Lenny server when I put for example 2048M I get only the php.ini default

5条回答
  •  生来不讨喜
    2020-11-29 04:04

    As describe here : http://www.hardened-php.net/suhosin/configuration.html#suhosin.memory_limit

    Suhosin will not let you set a value greater than the one the script started with.

    If you set the suhosin.memory_limit to 2048M then you'll be able to increase your memory usage.

提交回复
热议问题