【发布时间】:2012-03-05 18:44:49
【问题描述】:
出于不好的原因,我需要将目录的 memory_limits 设置为高于 1 GB,但在我使用 Debian 5.0 (Lenny) 服务器上的 PHP 5.2.17 时,例如 2048M ,我只得到 php.ini 默认值(256M)。
PHP 作为 Apache 模块运行,phpinfo 为我们提供(用于目录):
memory_limit 1024M 256M
suhosin.memory_limit 0 0
是否有 Apache 模块或 PHP 配置的限制?我知道服务器只有 4 GB 的 RAM。这只是一个特殊的脚本。
【问题讨论】:
-
我现在也处于同样的情况。我很理解:“出于糟糕的原因”!
-
让文件 php.ini 的更改生效是一个常见问题解答。规范问题在哪里?相关:Where can I find php.ini?、How can I find the php.ini file used by the command line?、How can I know which 'php.ini' file is used? 和 php.ini changes, but not effective on Ubuntu。
标签: php memory-limit