Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Roundcube increase upload limit

    Roundcube
    5
    10
    431
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 3246
      3246 last edited by

      Hi all,

      Is it save to manually amend the php.ini for the roundcube app to increase the file upload limit?

      It's set to 25MB which is way too tiny for easy importing of mailboxes 🙂

      Yes, there is IMAPsync but... roundcube's import/export function is super quick-n-easy.

      Visit https://www.axelsegebrecht.com for more about me

      1 Reply Last reply Reply Quote 0
      • MooCloud_Matt
        MooCloud_Matt last edited by

        Hi,
        the problem is not whether it is safe or not safe, simply it is not very effective because after each update that value will be restored, what you can do is a custom app and simply change that parameter in the dockerfile.

        --> https://git.cloudron.io/cloudron/roundcube-app/-/blob/master/Dockerfile#L28

        Matteo. R.
        Founder and Tech-Support Manager.
        MooCloud MSP
        Swiss Managed Service Provider

        1 Reply Last reply Reply Quote 1
        • nebulon
          nebulon Staff last edited by

          I've created an issue to track this at https://git.cloudron.io/cloudron/roundcube-app/-/issues/2

          1 Reply Last reply Reply Quote 1
          • girish
            girish Staff last edited by

            In the new package, you can override PHP.ini settings in /app/data/php.ini

            jdaviescoates 1 Reply Last reply Reply Quote 1
            • 3246
              3246 last edited by

              Thank you @girish 🙂

              Visit https://www.axelsegebrecht.com for more about me

              1 Reply Last reply Reply Quote 0
              • jdaviescoates
                jdaviescoates @girish last edited by jdaviescoates

                @girish said in Roundcube increase upload limit:

                In the new package, you can override PHP.ini settings in /app/data/php.ini

                Great, but there are no defaults in there to edit and people like me are unsure of the syntax to use?

                @girish I note there are nothing in the docs about how to do this, so perhaps add something there about how to increase attachment size including what syntax to put where?

                Before finding this thread, but having looked at the docs I just tried adding $config['max_message_size'] = '100M'; to /app/data/customconfig.php but that didn't seem to do anything (at least, it didn't change the attachment size upload limit)

                I use Cloudron with Gandi & Hetzner

                jdaviescoates 1 Reply Last reply Reply Quote 0
                • jdaviescoates
                  jdaviescoates @jdaviescoates last edited by jdaviescoates

                  OK, so I've managed to work out that by using the File Manager to add this to php.ini settings in /app/data/php.ini

                  ; Increase maximum post size
                  post_max_size = 75M
                  
                  ; Increase maximum upload size
                  upload_max_filesize = 75M
                  

                  The upload size is now increased to 75MB

                  Maximum allowed file size is 75 MB.png

                  That'll do me for now (I needed to upload a 50 MB file), but I'm also wondering how to increase it beyond 75 MB?

                  Increasing the values in php.ini over 75 doesn't make any difference, so presumably there is some other config somewhere that needs editing/ overriding too...

                  I use Cloudron with Gandi & Hetzner

                  jdaviescoates 2 Replies Last reply Reply Quote 2
                  • jdaviescoates
                    jdaviescoates @jdaviescoates last edited by jdaviescoates

                    @jdaviescoates said in Roundcube increase upload limit:

                    The upload size is now increased to 75MB

                    Although for that to actually work I also had to increase the Maximum email size in Cloudron too, under Email -> Settings.

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply Reply Quote 2
                    • jdaviescoates
                      jdaviescoates @jdaviescoates last edited by

                      @jdaviescoates said in Roundcube increase upload limit:

                      'm also wondering how to increase it beyond 75 MB?
                      Increasing the values in php.ini over 75 doesn't make any difference, so presumably there is some other config somewhere that needs editing/ overriding too...

                      I'm still wondering that

                      I use Cloudron with Gandi & Hetzner

                      girish 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @jdaviescoates last edited by

                        @jdaviescoates I put the docs in https://docs.cloudron.io/apps/roundcube/#upload-size . I think adjusting $config['max_message_size'] = '100M'; takes it over 75M . Note that roundcube uses 1/3 of the size here for attachments (the rest is for the message body itself). So, maybe make it like 150MB or something.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB