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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Roundcube
  3. Roundcube increase upload limit

Roundcube increase upload limit

Scheduled Pinned Locked Moved Solved Roundcube
10 Posts 5 Posters 4.0k Views 5 Watching
  • 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.
    • 32463 Offline
      32463 Offline
      3246
      wrote on last edited by
      #1

      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.

      👉 Find our more www.bebraver.online

      1 Reply Last reply
      0
      • MooCloud_MattM Offline
        MooCloud_MattM Offline
        MooCloud_Matt
        wrote on last edited by
        #2

        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
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #3

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

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

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

            jdaviescoatesJ 1 Reply Last reply
            1
            • 32463 Offline
              32463 Offline
              3246
              wrote on last edited by
              #5

              Thank you @girish 🙂

              👉 Find our more www.bebraver.online

              1 Reply Last reply
              0
              • girishG girish

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

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by jdaviescoates
                #6

                @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

                jdaviescoatesJ 1 Reply Last reply
                0
                • jdaviescoatesJ 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)

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by jdaviescoates
                  #7

                  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

                  jdaviescoatesJ 2 Replies Last reply
                  2
                  • jdaviescoatesJ 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...

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by jdaviescoates
                    #8

                    @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
                    2
                    • jdaviescoatesJ 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...

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #9

                      @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

                      girishG 1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates

                        @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

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #10

                        @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
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search