Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: gogo on January 18, 2009, 12:37:12 PM

Title: I can't send attachment bigger as 4MB
Post by: gogo on January 18, 2009, 12:37:12 PM
Please help
I can't send attachment bigger as 4MB from web
In php.ini  I have set php memory limit to 512MB
i trying edit .htaccess but still can't send attachment and still error in log
PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 17214025 bytes) in /mnt/webfiles/htdocs/email/program/lib/Net/SMTP.php on line 831

my configuration:

OS Linux Gentoo 2.6.25-gentoo-r7
PHP Version 5.2.6-pl7-gentoo
MySQL 5.0.60
RoundCube v0.2 stable

Thank you. Sorry for my poor english I'm czech ;)
Title: I can't send attachment bigger as 4MB
Post by: drewpydraws on February 11, 2009, 12:37:11 AM
QuoteFatal error: Allowed memory size of 67108864

That means that php isn't actually allowing your 512 setting. Are you sure you restarted apache?
Title: Check your upload file size in php.ini
Post by: trinitous on February 11, 2009, 01:38:05 PM
When you say you changed your php memory size to 512MB, which parameter are you referring to?

I may be way off on this one as I am quite new to roundcube still, but there are a couple of parameters in the php.ini file that I believe need to be checked.

post_max_size
upload_max_filesize

by default they are set as follows:

post_max_size = 10M
upload_max_filesize = 2M

If you changed your post_max_size to 512M, but not your upload_max_filesize, then I don't think you'll be able to send anything over 2MB.  Similarly, if you set the upload_max_filesize to something larger than the post_max_size, you will also get an error.  It is my understanding that upload_max_filesize must be <= post_max_size.

Hope this information helps.;D
Title: I can't send attachment bigger as 4MB
Post by: drewpydraws on February 11, 2009, 11:51:40 PM
@trinitous

This is actually a known issue.

#1484660 (Attachment Excessive Memory Use Error) ? RoundCube Webmail (http://trac.roundcube.net/ticket/1484660)