I have an problem increasing memory limit for PHP as Apache module.
If I put following directive in Apache configuration, that work OK:
php_value memory_limit 1.99G
But over 2GB do not work, it's restore this value back to 128MB.
What is the problem here? I need more memory for some PDF related tasks.
Server is Debian 2.6.32-5-amd64 #1 SMP, PHP 5.3.3-7+squeeze13 with 12GB physical RAM.
ini_set('memory_limit', -1);
only on the file you need it. See if that works. – Principalitiesini_set("memory_limit", "-1")
so I am sure that limitation is in php and not in apache. Maybe it hast todo with the 32bit max_int – Shirtwaist