Yes, thank you for the reply, but unfortunately that doesn’t help me. I
have been playing with /etc/php5/apache2/php.ini, restarting apache, and
I ALWAYS get the same error (including the 134217728 number). So
whatever I am changing is not where EG seems to be looking. I have
changed other values in the file (ie date.timezone and
session.gc_maxlifetime) and they have had an effect. The file uploads
OK, but fails when I try to send. Here are the changes I have made and
their current values:
128M for post_max_size
64M for upload_max_filesize
120 for max_execution_time
120 for max_input_time
512M for memory_limit
Like I said, no matter what changes I make, it not only does not fix the
issue but I get the exact same error. So I am thinking that there might
be some hard coded values in the email module or something?
James
Hi.
a) make sure you set the settings in the right php.ini
You may find that you have two or more, like one for apache2 and one for
CLI on debian. Within apache, you may have even multiple.
Usually (on debian, ubuntu, etc), it is the php.ini in /etc/php5/apache2
b) You do not only have to set memory_limit = xxxxM
but also
upload_max_filesize = xxxxM (only to upload files, images etc)
and
post_max_size = xxxM (to post emails etc)
This is to get your data to PHP in the first place.
Your memory limit should be quite higher than your post size as it is
quite likely that PHP will be asked to do some work with it.
I’d say at least double.
Also keep in mind that when the raw email is encoded, it will be 150% to
200% of the original size, so when you are sending 20M to the server, it
will likely be around 40M.
So I guess your post_max_size should be around 64M and your memory_limit
128M.
That would be the minimum.
I personally have a memory_limit of 512M and a post_max_size of 128M.
(20M email is NOT big any more nowadays…
)
Cheers,
Ingo
Hello,
I am trying to use felamail (EGW 1.8) to send a large (20MB) email but
it fails. In the apache log I get the error “Allowed memory size of
134217728 bytes exhausted (tried to allocate 26992890 bytes)”. I googled
a bit, and the answer seems to be to set the memory_limit in php.ini and
restart apache, but I get the same error no matter what I set the
memory_limit to, even when I set it to -1. Does anybody have any
suggestions?
On a related note, when I go to attach a file, it warns that the file
size limit is 64MB, and trying to grok the code, it looks like it gets
that value from upload_max_filesize in php.ini, but that value is not
set to 32MB. So bonus points if anybody can tell me where that value is
coming from as well.
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users
–
James D Bearden
Nontrivial Solutions, LLC
http://www.nontrivial.net
mailto://james@nontrivial.net
(405) 593-8098
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users