How to increase memory limit for PHP over 2GB?

memory-limit, php

Solution

Have you tried using the value in MB ?

php_value memory_limit 2048M

Also try editing this value in `php.ini` not Apache.

Problem

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.

Original source

Related problems