Php Limits


ThreadStackSize 16*1024*1024
Check your Apache config (e.g., httpd.conf). There's likely an RLimitMEM directive limiting the memory allow for children processes handling requests.

// in php.ini
memory_limit = 32M
memory_limit = 3G


// in php code
ini_set("memory_limit", "-1");
ini_set('memory_limit', '128M');

// in .htaccess
php_value memory_limit 64M

<IfModule prefork.c>
        MaxRequestsPerChild  1
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License