Roundcube Community Forum

 

I can't send attachment bigger as 4MB

Started by gogo, January 18, 2009, 12:37:12 PM

Previous topic - Next topic

gogo

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 ;)

drewpydraws

QuoteFatal error: Allowed memory size of 67108864

That means that php isn't actually allowing your 512 setting. Are you sure you restarted apache?

trinitous

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