[horde] Fatal error: Allowed memory size of #### bytes exhausted

Paul van der Vlis paul at vandervlis.nl
Fri Aug 5 16:10:23 UTC 2011


Op 05-08-11 17:23, Niels Dettenbach schreef:
> Am Freitag, 5. August 2011, 17:02:55 schrieb Paul van der Vlis:
>> Changing the memory_limit in /etc/php5/cli/php.ini did help. I use this:
>>  memory_limit = 132M
> 
> Yes,
> 
> (btw is 128 MB a dual exponent - not 132)

It was just easy to put a "1" before "32".
I've seen now that 64M is enough.

> Another way is to give memory_limit with the pear command line:
> 
> 	-d memory_limit=16M 

Ah, nice.

> but unfortunately this as editing php.ini did NOT help on several Linux / Unix 
> distros where "pear" is just a wrapper script and includes the mem limit 
> config on command line within that wrapper script (i.e. Gentoo Linux).
> 
> To avoid this you have to locate the pear wrapper script - i.e. with:
> 
> 	whereis pear
> 
> and edit it with a texteditor - i.e:
> 
> 	vi /usr/bin/pear
> 
> this snippet
> 
> 	-d memory_limit=16M 
> 
> to
> 	-d memory_limit=128M 

If you have the right to edit it.

Otherways, you can copy the file to a place where you may edit it, and
execute it from there.

I've seen you can do everything as a normal user.

With regards,
Paul.



-- 
Linux systeembeheer Groningen
http://www.vandervlis.nl


More information about the horde mailing list