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. Announcements
  3. Changes to WordPress apps

Changes to WordPress apps

Scheduled Pinned Locked Moved Announcements
82 Posts 10 Posters 24.7k Views 11 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.
  • marcusquinnM marcusquinn

    @jdaviescoates In the meantime, people can reproduce most of what multi-site does with these plugins for those wanting each site to stay contained and portable for resources:

    • https://distributorplugin.com
    • https://en-gb.wordpress.org/plugins/wp-cfm/
    • https://managewp.com

    I do intend to have another look at multi-site at some point as a way of quickly firing up demo instances, so I agree on the need, we just wanted to solve the same things in a more segregated way to keep options open.

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

    @marcusquinn And that's the one area you and I diverge in which, I think, is good. You keep me thinking of the benefits of single site and I'll keep you thinking of the benefits of multisite. 😂

    1 Reply Last reply
    1
    • marcusquinnM Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by
      #33

      For interest, these aliases are all the same Cloudron app:

      • https://healthshop.net
      • https://healthshop.co.uk
      • https://healthshop.eu

      I'll ask the team for more details while we wait for an official option.

      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
        #34

        I have pushed the fixes for the WordPress (Developer) app. See https://forum.cloudron.io/post/16775 . It now has LDAP support as well. New doc pages is at https://docs.cloudron.io/apps/wordpress-developer/

        LonkleL 1 Reply Last reply
        7
        • girishG girish

          I have pushed the fixes for the WordPress (Developer) app. See https://forum.cloudron.io/post/16775 . It now has LDAP support as well. New doc pages is at https://docs.cloudron.io/apps/wordpress-developer/

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

          @girish said in Changes to WordPress apps:

          I have pushed the fixes for the WordPress (Developer) app. See https://forum.cloudron.io/post/16775 . It now has LDAP support as well. New doc pages is at https://docs.cloudron.io/apps/wordpress-developer/

          Can you activate LDAP post-installation or would I have to re-install? I broke Cloudron rn so I can't test an app to try and see if it's in the configuration settings.

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

            The SFTP issue is sorted out now. There is a config option in Services -> SFTP. By default, only admins can access files via SFTP. So, this is a breaking change in the next release.

            7e437f6e-105a-43f5-be27-8518f8491885-image.png

            1 Reply Last reply
            3
            • LonkleL Lonkle

              @girish said in Changes to WordPress apps:

              I have pushed the fixes for the WordPress (Developer) app. See https://forum.cloudron.io/post/16775 . It now has LDAP support as well. New doc pages is at https://docs.cloudron.io/apps/wordpress-developer/

              Can you activate LDAP post-installation or would I have to re-install? I broke Cloudron rn so I can't test an app to try and see if it's in the configuration settings.

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

              @Lonk said in Changes to WordPress apps:

              Can you activate LDAP post-installation or would I have to re-install?

              Exactly what I'm thinking... I'll go and see...

              I use Cloudron with Gandi & Hetzner

              imc67I 1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @Lonk said in Changes to WordPress apps:

                Can you activate LDAP post-installation or would I have to re-install?

                Exactly what I'm thinking... I'll go and see...

                imc67I Offline
                imc67I Offline
                imc67
                translator
                wrote on last edited by
                #38

                @jdaviescoates I’ve updated one of my wp apps, installed the ldap plugin used the managed ldap settings and (just to be sure) after a restart of the app ldap works!

                jdaviescoatesJ 2 Replies Last reply
                1
                • imc67I imc67

                  @jdaviescoates I’ve updated one of my wp apps, installed the ldap plugin used the managed ldap settings and (just to be sure) after a restart of the app ldap works!

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

                  @imc67 said in Changes to WordPress apps:

                  installed the ldap plugin used the managed ldap settings

                  Aha, I also just updated and didn't see any LDAP support, but this is the step I'm missing!

                  @girish be nice if updating Unmanaged to the new Developer version auto-magically installed the LDAP plugin and settings!

                  I use Cloudron with Gandi & Hetzner

                  LonkleL 1 Reply Last reply
                  0
                  • imc67I imc67

                    @jdaviescoates I’ve updated one of my wp apps, installed the ldap plugin used the managed ldap settings and (just to be sure) after a restart of the app ldap works!

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

                    @imc67 said in Changes to WordPress apps:

                    @jdaviescoates I’ve updated one of my wp apps, installed the ldap plugin used the managed ldap settings and (just to be sure) after a restart of the app ldap works!

                    When you go to Access Control in your updated app are you now seeing this? (as per how it looks if you install and choose LDAP on install)

                    do_you_see_this.png

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      @imc67 said in Changes to WordPress apps:

                      installed the ldap plugin used the managed ldap settings

                      Aha, I also just updated and didn't see any LDAP support, but this is the step I'm missing!

                      @girish be nice if updating Unmanaged to the new Developer version auto-magically installed the LDAP plugin and settings!

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

                      @jdaviescoates said in Changes to WordPress apps:

                      @imc67 said in Changes to WordPress apps:

                      installed the ldap plugin used the managed ldap settings

                      Aha, I also just updated and didn't see any LDAP support, but this is the step I'm missing!

                      @girish be nice if updating Unmanaged to the new Developer version auto-magically installed the LDAP plugin and settings!

                      I would have missed that necessary step myself. The only reason I didn't check on my own install is because @girish made a "hot fix" for me for my development and I had a VM issue so I re-installed and was refusing to go through the setup because I was afraid cloudron-machine wouldn't work after setup. But @girish confirmed today it does work after setup so I'm going to have fun testing out this LDAP integration with WP and figure out how cloudron-machine works later.

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

                        @jdaviescoates What @imc67 did should not be possible, so I am not sure how it works for him. The LDAP will only be available for new installations since this flag is chosen at install time and there is no way to change it post installation without tinkering with the database. Might be easier to export/import into a new install. Just backup current app, make a new LDAP based install and import that backup into new app.

                        imc67I LonkleL 2 Replies Last reply
                        2
                        • girishG girish

                          @jdaviescoates What @imc67 did should not be possible, so I am not sure how it works for him. The LDAP will only be available for new installations since this flag is chosen at install time and there is no way to change it post installation without tinkering with the database. Might be easier to export/import into a new install. Just backup current app, make a new LDAP based install and import that backup into new app.

                          imc67I Offline
                          imc67I Offline
                          imc67
                          translator
                          wrote on last edited by
                          #43

                          @girish it was really as easy as the steps I’ve mentioned before.

                          girishG 1 Reply Last reply
                          1
                          • imc67I imc67

                            @girish it was really as easy as the steps I’ve mentioned before.

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

                            @imc67 Ah, "installed the ldap plugin used the managed ldap settings". I missed this. So you put the credentials of managed LDAP app into this existing unmanaged app? Note that this will stop working when the managed app goes away!

                            imc67I LonkleL 2 Replies Last reply
                            1
                            • girishG girish

                              @jdaviescoates What @imc67 did should not be possible, so I am not sure how it works for him. The LDAP will only be available for new installations since this flag is chosen at install time and there is no way to change it post installation without tinkering with the database. Might be easier to export/import into a new install. Just backup current app, make a new LDAP based install and import that backup into new app.

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

                              @girish said in Changes to WordPress apps:

                              @jdaviescoates What @imc67 did should not be possible, so I am not sure how it works for him. The LDAP will only be available for new installations since this flag is chosen at install time and there is no way to change it post installation without tinkering with the database. Might be easier to export/import into a new install. Just backup current app, make a new LDAP based install and import that backup into new app.

                              Oh, gotcha, it can only be set at install time. So, do you think your suggestion to "set the flag without DB voodoo" (which I'm gonna do because I can't get the cloudron app db to work with remote sql, I've tried a lot). Do you think that method will clash with multisite database URL location changes (Wordpress storing the URL in a different place than single site)?

                              1 Reply Last reply
                              0
                              • girishG girish

                                @imc67 Ah, "installed the ldap plugin used the managed ldap settings". I missed this. So you put the credentials of managed LDAP app into this existing unmanaged app? Note that this will stop working when the managed app goes away!

                                imc67I Offline
                                imc67I Offline
                                imc67
                                translator
                                wrote on last edited by
                                #46

                                @girish huh why? These “codes” / settings are even from a managed app on another Cloudron, aren’t they the same for all?

                                girishG 1 Reply Last reply
                                0
                                • girishG girish

                                  @imc67 Ah, "installed the ldap plugin used the managed ldap settings". I missed this. So you put the credentials of managed LDAP app into this existing unmanaged app? Note that this will stop working when the managed app goes away!

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

                                  @girish Yes, also curious to understand what you mean by @imc67's hack will stop working...at some point (that I didn't understand "when the managed app goes away" when the managed app isn't going away)?

                                  robiR 1 Reply Last reply
                                  0
                                  • LonkleL Lonkle

                                    @girish Yes, also curious to understand what you mean by @imc67's hack will stop working...at some point (that I didn't understand "when the managed app goes away" when the managed app isn't going away)?

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

                                    @Lonk credentials are generated per app, he copied one app's LDAP credentials.

                                    If that app goes away, so do the unique credentials.

                                    Conscious tech

                                    imc67I 1 Reply Last reply
                                    2
                                    • robiR robi

                                      @Lonk credentials are generated per app, he copied one app's LDAP credentials.

                                      If that app goes away, so do the unique credentials.

                                      imc67I Offline
                                      imc67I Offline
                                      imc67
                                      translator
                                      wrote on last edited by imc67
                                      #49

                                      @robi but there are no credentials in the settings of the LDAP plug-in at WP, only settings/code

                                      (I tried to upload a 'scrolled' screenshot of the settings page but it's too big)

                                      Schermafbeelding 2020-10-22 om 22.07.44.png Schermafbeelding 2020-10-22 om 22.07.22.png Schermafbeelding 2020-10-22 om 22.07.16.png Schermafbeelding 2020-10-22 om 22.07.59.png

                                      1 Reply Last reply
                                      0
                                      • imc67I imc67

                                        @girish huh why? These “codes” / settings are even from a managed app on another Cloudron, aren’t they the same for all?

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

                                        @imc67 Ah yes, I see why it works.

                                        From a security perspective, each app gets it's own addon credentials (database, redis, ldap etc). When app is installed/uninstalled, we create/destroy a separate username/password/database for each app. Now, Cloudron could have gone a step further and implemented a security measure that these credentials will work only when the specific app uses it. This can be done because each app has it's own IP address internally (via Docker). We haven't implemented this, and as a result, the credentials of one app (say mysql username/password/database) can be copied over to another app and it will work. But it will only work until the other app exists. When the other app is uninstalled or repaired/restored etc, the credentials are regenerated.

                                        In the case of LDAP addon, there is a so called "bind" password which allows apps to make LDAP queries. We generate a bind password per app. However, currently, we don't enforce this password since some apps do not support it. This WordPress LDAP plugin we use is one such case (probably one of the remaining 3-4 apps in Cloudron). Because, it doesn't use a bind username/password, all you are copying over is the LDAP server credentials (server name/port which is the same across all cloudrons). So, this happens to work now. But later when we fix the plugin to use LDAP credentials, it will stop working.

                                        Also, you will see inconsistency in the UI since Cloudron is not aware that LDAP is enabled for the app. You will see a different access control view than what @jdaviescoates posted. You also can't control which users have access to ldap from the Cloudron UI. In fact, I am going to guess only admins can access your WP install (since they are allowed by default).

                                        imc67I LonkleL 2 Replies Last reply
                                        4
                                        • girishG girish

                                          @imc67 Ah yes, I see why it works.

                                          From a security perspective, each app gets it's own addon credentials (database, redis, ldap etc). When app is installed/uninstalled, we create/destroy a separate username/password/database for each app. Now, Cloudron could have gone a step further and implemented a security measure that these credentials will work only when the specific app uses it. This can be done because each app has it's own IP address internally (via Docker). We haven't implemented this, and as a result, the credentials of one app (say mysql username/password/database) can be copied over to another app and it will work. But it will only work until the other app exists. When the other app is uninstalled or repaired/restored etc, the credentials are regenerated.

                                          In the case of LDAP addon, there is a so called "bind" password which allows apps to make LDAP queries. We generate a bind password per app. However, currently, we don't enforce this password since some apps do not support it. This WordPress LDAP plugin we use is one such case (probably one of the remaining 3-4 apps in Cloudron). Because, it doesn't use a bind username/password, all you are copying over is the LDAP server credentials (server name/port which is the same across all cloudrons). So, this happens to work now. But later when we fix the plugin to use LDAP credentials, it will stop working.

                                          Also, you will see inconsistency in the UI since Cloudron is not aware that LDAP is enabled for the app. You will see a different access control view than what @jdaviescoates posted. You also can't control which users have access to ldap from the Cloudron UI. In fact, I am going to guess only admins can access your WP install (since they are allowed by default).

                                          imc67I Offline
                                          imc67I Offline
                                          imc67
                                          translator
                                          wrote on last edited by
                                          #51

                                          @girish that's sad, as the expectations with "upgrading" the app to 'developer' suggested all the long awaited new functionality.

                                          So what's the best, step-by-step approach?

                                          girishG 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