Roundcube Server Error (error) when uploading attachment

Discussion in 'General' started by Carlo Teves, Nov 20, 2025.

  1. Carlo Teves

    Carlo Teves New Member

    Hi, I'm quite new to Roundcube/ISPConfig. I'm having problems uploading files larger than 1MB. It fails saying Server Error (error), but anything lower than 1MB uploads with no error. I've already adjusted PHP upload settings and roundcube config.php. Am I missing any configurations other than these two? Thanks. Screenshot uploaded for reference
     

    Attached Files:

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you restart php-fpm for the PHP version RoundCube runs on?
     
  3. Carlo Teves

    Carlo Teves New Member

    Yes, I've already restarted php8.4-fpm. I can't also see any logs related to this error, already tried looking at /var/www/clients/../../web/logs/error.log but can't see any errors related

    edit: these php configs are set as follows
    upload_max_filesize = 25M
    post_max_size = 25M

    roundcube config.inc.php:
    $config['max_message_size'] = '34M';
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    He said "php-fpm for the PHP version RoundCube runs on", are you sure that yours is running version 8.4? Because default shipped with OS is normally used for RC, and Debian 12 is 8.2, while Ubuntu 24.04 is 8.3, so none of the default latest main supported OS is using 8.4.
     
  5. Carlo Teves

    Carlo Teves New Member

    Yes, I've changed my php version to 8.4. Im using Debian 12.
     
  6. Carlo Teves

    Carlo Teves New Member

    Anyways, I've got it resolved last night by configuring nginx.conf. Not sure if this is the right way.

    Edited /etc/nginx/sites-available/my.domain.com
    added these line below server_name:
    client_max_body_size 50M;

    restarted nginx and it works. Thanks
     
    ahrasis likes this.
  7. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    So you didn't use the default setup which conf is in apps.vhost but instead you use web site domain for it. Noted, and good to hear that you resolved it.
     

Share This Page