Roundcube Community Forum
News and Announcements => General Discussion => Topic started by: timreichhart on June 15, 2009, 02:12:41 AM
-
Hi Guys
I have a hugh problem right now with roundcube that problem is that I cant send out large attachments and I setup 10mb into php.ini and I dont have problems sending 5.6mb on outlook express but having problems sending 1mb on roundcube is there something I need to change or do?
-
Check settings in .htaccess in RoundCube root folder.
By default it is limited not to upload files larger than 5MB
php_flag display_errors Off
php_flag log_errors On
php_value error_log logs/errors
php_value upload_max_filesize 5M
php_value post_max_size 6M
php_value memory_limit 64M
php_value zlib.output_compression Off
php_value magic_quotes_gpc 0
php_value zend.ze1_compatibility_mode 0
php_value suhosin.session.encrypt Off
php_value session.auto_start 0
php_value session.gc_maxlifetime 21600
php_value session.gc_divisor 500
php_value session.gc_probability 1
# http://bugs.php.net/bug.php?id=30766
php_value mbstring.func_overload 0
-
sorry rosali I do not have .htaccess file for roundcube just let you know I installed roundcube with sudo apt-get install roundcube from ubuntu.
-
OK, then I hope someone else jumps into this thread. I'm not familiar with Linux.
-
bc I dont have any problems sending large files with squirrelmail but when I try to send it from roundcube it will just set there saying sending message for long time and noting happens.
-
Is there anything in your RC error log? PHP could be running out of memory, RC is known to really guzzel it up for attachments.
-
it would not be a memory issue because if that was a case then squirrelmail would be doing same thing as rc so it sounds like a issue with roundcube.
-
alright after looking in the rc/logs I need this:
[15-Jun-2009 01:41:10 -0400] IMAP Error: Authentication for x failed (LOGIN): "a001 NO Authentication failed." (POST /rc/?_task=&_action=login)
[15-Jun-2009 01:52:15] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 5411979 bytes) in /usr/share/php/Mail/mimePart.php on line 315
[15-Jun-2009 02:27:29] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4842219 bytes) in /usr/share/php/Mail/mimePart.php on line 315
-
So it is memory issue. You can compare with Squirrelmail. The way RoundCube handles attachments is rather resource consuming. It is a known issue and devs discuss about it since months.
[15-Jun-2009 01:52:15] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 5411979 bytes) in /usr/share/php/Mail/mimePart.php on line 315
[15-Jun-2009 02:27:29] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4842219 bytes) in /usr/share/php/Mail/mimePart.php on line 315
... this indicates that php.ini memory_limit is set to 16M. Increase it to 64M. By default this is done by the .htaccess file in the root folder. You stated yours is missing. So, either download and install it separately or adjust php.ini itself. Notice: .htaccess settings do not apply in cases. Your php may be set to ignore .htaccess files or parts of settings in there.
If you do not have access to your php settings you'll need assistance of your hosting company.
-
ok please tell me where to look at? bc I already upgraded my php.ini file to 64mb
bc I am the one who is hosting my own mail server and not by some crappy web hosting company.
well if its a known issue then get the problem fix.
-
well is going to help with this known issue.
-
We can't fix this, we are not the devs. Contact devs at RoundCube Mailing Lists (http://lists.roundcube.net).
But first fix your php to allow 64M memory allocation and not only 16M. This should help even if RoundCube attachment handling is still rather resource consuming.
-
I have fix it and im just done with this crappy web client.
-
to fix this issue open your roundcube folder where is installed at hosting.
open your .htaccess file and edit it and change this line from:
php_value memory_limit 64M to:
php_value memory_limit 128M
Be sure that your php.ini give you more than 64 MB of memory too.
Restart apache2
hope this help.