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. Feature Requests
  3. [Suggestion] Server-Wide Database Manager and File Browser

[Suggestion] Server-Wide Database Manager and File Browser

Scheduled Pinned Locked Moved Solved Feature Requests
feature-requestfilemanagement
23 Posts 7 Posters 3.5k Views 7 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.
  • gabrielcossetteG Offline
    gabrielcossetteG Offline
    gabrielcossette
    wrote on last edited by girish
    #1

    Hi,

    For Cloudron to be really useful to Web developers, I believe it needs to offer a way to manage all databases and files (Docker volumes, i.e. /app/data) on the server. For example, WordPress developers like to edit theme files directly through SFTP or a Web File Manager.

    I know the LAMP app supports SFTP and phpMyAdmin but it is restricted only to this app (not able to manage the WordPress app for example).

    The ideal way would be to integrate these features directly in the admin dashboard (like the Terminal), with the added important advantage of 2FA integration (missing in LAMP app).

    Good candidates are phpMyAdmin (DB), https://pydio.com (Web File Manager) and SFTP server with TOTP module... but the two first are PHP applications so not compatible with the current Node.js based dashboard so I'm not too sure how we could work this out. I've seen some ways to apparently run PHP through Node.js but more investigation would be needed.

    I'm ready to help if there is interest. Happy to hear your thoughts, thanks! 🙂

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

      @gabrielcossette Thanks for the suggestion! We actually investigated this a couple of releases back and it's not simple to add. For the file browser, the UI parts are actually straight forward but the complication is with accessing the docker volumes. Accessing the data inside docker volumes will require the box code to somehow know the container user (to get the right permissions for files) and will also require the box code to run as root. This requires quite some engineering work.

      Just giving some background on why this has not been done yet.

      christiaanC robiR 2 Replies Last reply
      2
      • girishG girish

        @gabrielcossette Thanks for the suggestion! We actually investigated this a couple of releases back and it's not simple to add. For the file browser, the UI parts are actually straight forward but the complication is with accessing the docker volumes. Accessing the data inside docker volumes will require the box code to somehow know the container user (to get the right permissions for files) and will also require the box code to run as root. This requires quite some engineering work.

        Just giving some background on why this has not been done yet.

        christiaanC Offline
        christiaanC Offline
        christiaan
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • marcusquinnM Offline
          marcusquinnM Offline
          marcusquinn
          wrote on last edited by
          #4

          Maybe some inspiration from how this Wordpress plugin does it with Adminer:

          https://github.com/andrewcy86/ari-adminer

          https://www.adminer.org

          Covers all the DB types too:

          https://www.adminer.org/en/phpmyadmin/

          Web Design https://www.evergreen.je
          Development https://brandlight.org
          Life https://marcusquinn.com

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

            We now have a simple file browser in 5.4

            marcusquinnM 1 Reply Last reply
            1
            • girishG girish

              We now have a simple file browser in 5.4

              marcusquinnM Offline
              marcusquinnM Offline
              marcusquinn
              wrote on last edited by marcusquinn
              #6

              @girish And very nice work too!

              Just in case you didn't note, Adminer I've tried before in WP stacks and it's covered all I could imagine needing for DB Admin and seems designed for this kind of embedded use. Not sure what other options there are in this space but it might save you re-inventing.

              Web Design https://www.evergreen.je
              Development https://brandlight.org
              Life https://marcusquinn.com

              1 Reply Last reply
              1
              • M Offline
                M Offline
                msbt
                App Dev
                wrote on last edited by
                #7

                @girish great stuff, but is it possible to have a column which shows the date when a file was created/changed and maybe sort accordingly?

                1 Reply Last reply
                0
                • LonkleL Offline
                  LonkleL Offline
                  Lonkle
                  wrote on last edited by
                  #8

                  I edit my WP databases with PHPMyAdmin a lot. I wonder if I can add it to those apps...unless Remote SQL is a feature on Cloudron (then I'll just locally run Sequel Pro).

                  marcusquinnM 1 Reply Last reply
                  0
                  • LonkleL Lonkle

                    I edit my WP databases with PHPMyAdmin a lot. I wonder if I can add it to those apps...unless Remote SQL is a feature on Cloudron (then I'll just locally run Sequel Pro).

                    marcusquinnM Offline
                    marcusquinnM Offline
                    marcusquinn
                    wrote on last edited by
                    #9

                    @Lonk Add /phpmyadmin/ to the URL and PhPMyAdmin should be there:

                    https://docs.cloudron.io/apps/wordpress/#database-access

                    Web Design https://www.evergreen.je
                    Development https://brandlight.org
                    Life https://marcusquinn.com

                    LonkleL 1 Reply Last reply
                    0
                    • LonkleL Offline
                      LonkleL Offline
                      Lonkle
                      wrote on last edited by
                      #10

                      Your link says in it's first sentence: "Cloudron does not support PHPMyAdmin" - but I'll try it out. ☺️

                      1 Reply Last reply
                      0
                      • marcusquinnM marcusquinn

                        @Lonk Add /phpmyadmin/ to the URL and PhPMyAdmin should be there:

                        https://docs.cloudron.io/apps/wordpress/#database-access

                        LonkleL Offline
                        LonkleL Offline
                        Lonkle
                        wrote on last edited by
                        #11

                        @marcusquinn I tried it and it didn't work. I'll just see if I can get Sequel Pro working via Remote SQL. ☺️

                        marcusquinnM 1 Reply Last reply
                        0
                        • LonkleL Lonkle

                          @marcusquinn I tried it and it didn't work. I'll just see if I can get Sequel Pro working via Remote SQL. ☺️

                          marcusquinnM Offline
                          marcusquinnM Offline
                          marcusquinn
                          wrote on last edited by
                          #12

                          @Lonk Ahh, maybe it was just the LAMP app and I'm thinking of FTP for Wordpress. Sometimes things change before Docs updates though.

                          https://docs.cloudron.io/apps/lamp/#phpmyadmin

                          Web Design https://www.evergreen.je
                          Development https://brandlight.org
                          Life https://marcusquinn.com

                          LonkleL 1 Reply Last reply
                          1
                          • marcusquinnM marcusquinn

                            @Lonk Ahh, maybe it was just the LAMP app and I'm thinking of FTP for Wordpress. Sometimes things change before Docs updates though.

                            https://docs.cloudron.io/apps/lamp/#phpmyadmin

                            LonkleL Offline
                            LonkleL Offline
                            Lonkle
                            wrote on last edited by
                            #13

                            @marcusquinn Ah, so it is possible to maybe get that working with Wordpress but I'd rather get Remote SQL working instead like you said you managed to do on another post. My attempts haven't worked up till now.

                            marcusquinnM 1 Reply Last reply
                            0
                            • LonkleL Lonkle

                              @marcusquinn Ah, so it is possible to maybe get that working with Wordpress but I'd rather get Remote SQL working instead like you said you managed to do on another post. My attempts haven't worked up till now.

                              marcusquinnM Offline
                              marcusquinnM Offline
                              marcusquinn
                              wrote on last edited by
                              #14

                              @Lonk Old guy memory here, I think I only used phpmyadmin with the LAMP app and was thinking of FTP. Agree though, it'd be handy.

                              I've recommended https://www.adminer.org before as a handy way to make it part or Cloudron.

                              Web Design https://www.evergreen.je
                              Development https://brandlight.org
                              Life https://marcusquinn.com

                              1 Reply Last reply
                              0
                              • LonkleL Offline
                                LonkleL Offline
                                Lonkle
                                wrote on last edited by
                                #15

                                Do you like Adminer better than PHPMyAdmin? Tbh, I don't really love PHPMyAdmin.

                                marcusquinnM 1 Reply Last reply
                                0
                                • girishG girish

                                  @gabrielcossette Thanks for the suggestion! We actually investigated this a couple of releases back and it's not simple to add. For the file browser, the UI parts are actually straight forward but the complication is with accessing the docker volumes. Accessing the data inside docker volumes will require the box code to somehow know the container user (to get the right permissions for files) and will also require the box code to run as root. This requires quite some engineering work.

                                  Just giving some background on why this has not been done yet.

                                  robiR Offline
                                  robiR Offline
                                  robi
                                  wrote on last edited by
                                  #16

                                  @girish I have a solution to this if we can add a new container type to use for this. It's called sysbox from nestybox. You have an email from me about this.

                                  It allows for running full machine images in sysbox container managed by docker. No root required, but you get root inside + full OS mount options for storage, etc..

                                  Also should look at mayadata.com and OpenEBS which is flexible storage attachment for containers.

                                  Friends of both 😄

                                  Conscious tech

                                  1 Reply Last reply
                                  2
                                  • LonkleL Lonkle

                                    Do you like Adminer better than PHPMyAdmin? Tbh, I don't really love PHPMyAdmin.

                                    marcusquinnM Offline
                                    marcusquinnM Offline
                                    marcusquinn
                                    wrote on last edited by
                                    #17

                                    @Lonk I got what I needed done with it as a WP plugin, although it was removed from wordpress.org:

                                    • https://wordpress.org/plugins/ari-adminer/
                                    • https://github.com/andrewcy86/ari-adminer
                                    • https://github.com/ginsterbusch/ari-adminer
                                    • https://wpvulndb.com/plugins/ari-adminer

                                    Web Design https://www.evergreen.je
                                    Development https://brandlight.org
                                    Life https://marcusquinn.com

                                    LonkleL 1 Reply Last reply
                                    0
                                    • marcusquinnM marcusquinn

                                      @Lonk I got what I needed done with it as a WP plugin, although it was removed from wordpress.org:

                                      • https://wordpress.org/plugins/ari-adminer/
                                      • https://github.com/andrewcy86/ari-adminer
                                      • https://github.com/ginsterbusch/ari-adminer
                                      • https://wpvulndb.com/plugins/ari-adminer
                                      LonkleL Offline
                                      LonkleL Offline
                                      Lonkle
                                      wrote on last edited by
                                      #18

                                      @marcusquinn Thanks, I'll check those out, but I usually like database management to be detached from the Wordpress backend for security reasons.

                                      marcusquinnM 1 Reply Last reply
                                      0
                                      • LonkleL Lonkle

                                        @marcusquinn Thanks, I'll check those out, but I usually like database management to be detached from the Wordpress backend for security reasons.

                                        marcusquinnM Offline
                                        marcusquinnM Offline
                                        marcusquinn
                                        wrote on last edited by marcusquinn
                                        #19

                                        @Lonk Yeah, of course - but it's a way to get DB access when it's not otherwise available externally. I tend to delete them after use just to be sure.

                                        Web Design https://www.evergreen.je
                                        Development https://brandlight.org
                                        Life https://marcusquinn.com

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

                                          @Lonk @marcusquinn This is part of https://forum.cloudron.io/topic/2760/what-s-coming-in-6-0. The "unify PHPMyAdmin across apps" part. We haven't really investigated what is the best way to implement it.

                                          robiR LonkleL 2 Replies Last reply
                                          1
                                          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