Roundcube system error on attachments larger than 1Mb

Reported by: Farhad
Created: 8 months 29 days ago
Views: 879

I have configured everything correctly and it works fine but attachments larger than 1Mb get server error in Roundcube

I have added this line "$config['max_message_size'] = '25M';" to /var/www/mail.server.com/program/lib/Roundcube/rcube_config.php and rcube.php but the error still exists

then I add these configs below to /var/www/mail.server.com/.htaccess :

  php_value   upload_max_filesize   50M

  php_value   post_max_size   50M

  php_value   memory_limit   512M

then I saw "Maximum allowed file size is 50 MB" in attachment section but still I had server error for files larger than 1Mb so I updated mentioned configs in php.ini file located in /etc/php/7.4/fpm/ but still I have server error

also got this in console when server error appears:

Failed to load resource: the server responded with a status of 413 ()

Join our Discord server
Write a reply Edit a reply