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

    Changes to WordPress apps

    Announcements
    10
    82
    5893
    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.
    • girish
      girish Staff @Lonkle last edited by girish

      @Lonk said in Changes to WordPress apps:

      Woah, that quick! Did you give up on your security worries of Unmanaged LDAP because itโ€™s called Developer Edition or did you solve them?

      Ah right, forgot to mention this. There is no real fix for this. SFTP access when given to normal Cloudron users to edit code..is a security problem. I think we will put a note in the docs/tooltip warning in the UI. The user has to evaluate if this is really a security issue for them. We were thinking we will add a checkbox which user has to click to allow SFTP access for non-admins.

      1 Reply Last reply Reply Quote 2
      • girish
        girish Staff @Lonkle last edited by

        @Lonk said in Changes to WordPress apps:

        . But it would have to be chosen during installation or there would have to be an option in Wordpress Configure within Cloudron

        Ah, it's an install time flag for WordPress? In general, is it possible to convert multi-site to single-site and vice versa (in an automated way) ?

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

          @girish No no, not an install time flag. You can convert at any time from single-site to multisite. But there's no converting back once you're on multisite.

          I only mentioned that you might want to do it during install time because then you wouldn't have to add an option in dashboard asking a user if they'd like to "Convert to Multisite (This Cannot Be Undone)" kinda thing. But doing it at install time, or after install time - just as easy.

          Because I had SFTP access on the Developer Edition, I was able to just enable it manually. But that does come with caveats - like you cannot change the URL in Cloudron if you're a multisite (it's stores the domain in a different place in the DB with multisite, and also in wp-config.php). That, and the WP-CRON that would need multisite support.

          The only think beyond those two things (which I could code easily to integrate with Cloudron) is real domain aliases (not redirections) would be needed. Which, after looking into reverseproxy.js, shouldn't be hard. I just am horrible at editing dashboard code every time I try. ๐Ÿ˜…

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

            what is the purpose of including redis?

            Life of Advanced Technology

            d19dotca 1 Reply Last reply Reply Quote 0
            • d19dotca
              d19dotca @robi last edited by

              @robi Redis can be used for caching improvements to WordPress, some plugins will work with redis as the caching backend.

              --
              Dustin Dauncey
              www.d19.ca

              robi 1 Reply Last reply Reply Quote 2
              • robi
                robi @d19dotca last edited by

                @d19dotca there's already several instances that run as shown in Cloudron services, but I can't tell if that's shared or not.

                none of the other databases show which apps use them.

                Life of Advanced Technology

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

                  @robi The databases are shared since MySQL, PostgreSQL, Mongo etc are multi-tenant. You can setup rules to isolate users and apps. Redis is not multi-tenant. For this reason, there is a redis instance per app. Redis is ultra-light weight though, so it's not really a resource hog/issue.

                  robi Lonkle 2 Replies Last reply Reply Quote 2
                  • marcusquinn
                    marcusquinn last edited by marcusquinn

                    I spotted an article recently that reminded me of this debate, and I think I can make the distinction a little more familiar:

                    • Wordpress (Managed) is more like wordpress.com
                    • Wordpress (Unmanaged) is more like wordpress.org

                    We're not here for a long time - but we are here for a good time :)
                    Jersey/UK
                    Work & Ecommerce Advice: https://brandlight.org
                    Personal & Software Tips: https://marcusquinn.com

                    Lonkle 1 Reply Last reply Reply Quote 3
                    • robi
                      robi @girish last edited by

                      @girish thanks for that.
                      is that something we can fix graphite with?

                      Life of Advanced Technology

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

                        @girish said in Changes to WordPress apps:

                        @robi The databases are shared since MySQL, PostgreSQL, Mongo etc are multi-tenant. You can setup rules to isolate users and apps. Redis is not multi-tenant. For this reason, there is a redis instance per app. Redis is ultra-light weight though, so it's not really a resource hog/issue.

                        I had been wondering this entire time why Redis wasn't shared (I used LAMP a lot in my testing as did I docker network inspect cloudron so because you name the containers as hashes, the redis ones made it easier to identify which was which (my VPN client which had no redis, and the LAMP client), so that was pretty useful to me funnily enough.

                        1 Reply Last reply Reply Quote 0
                        • Lonkle
                          Lonkle @marcusquinn last edited by

                          @marcusquinn said in Changes to WordPress apps:

                          I spotted an article recently that reminded me of this debate, and I think I can make the distinction a little more familiar:

                          • Wordpress (Managed) is more like wordpress.com
                          • Wordpress (Unmanaged) is more like wordpress.org

                          Great comparison and should hit home, I - for no particular reason - think the name should stay, but at the end of each desciption, it could say:

                          "Think of this as as simple and easy "wordpress.com" but with plugin support."

                          Something to that affect would work to compare the two for existing Wordpress users looking to switch.

                          marcusquinn 1 Reply Last reply Reply Quote 2
                          • marcusquinn
                            marcusquinn @Lonkle last edited by marcusquinn

                            @Lonk The worry with wordpress.com, Shopify etc, is always the risk of de-platforming with no recourse, when they are judge & jury.

                            I'm convinced self-hosting federation is the future. Compared to relying on the whims of a single provider, that can have their abuse processes abused by rogue competitors is a very real risk.

                            These risks increase the more successful you are when rogue competition or trolls can take a dislike and interrupt innocent people & businesses at any time.

                            We're not here for a long time - but we are here for a good time :)
                            Jersey/UK
                            Work & Ecommerce Advice: https://brandlight.org
                            Personal & Software Tips: https://marcusquinn.com

                            Lonkle 1 Reply Last reply Reply Quote 1
                            • Lonkle
                              Lonkle @marcusquinn last edited by

                              @marcusquinn said in Changes to WordPress apps:

                              @Lonk The worry with wordpress.com, Shopify etc, is always the risk of de-platforming with no recourse, when they are judge & jury.

                              I'm convinced self-hosting federation is the future, relying o the whims of a single provider, that can have their Abuse processes abused by rogue competitors is a very real risk, that increases the more successful you are and rogue competition or trolls can take a dislike and interrupt innocent people & businesses at any time.

                              Your belief in open source is one of the many reasons I respect ya, man. I think it's more important than people think or realize. Even I didn't for a lonk time. But it's important to own your future. Understand what you're running on, be able to fix something that the developer doesn't have time to because you have access to what you're running on. But seriously, I gotta brag about Cloudron's API one more time, it's amazinggggg. ๐Ÿ˜‚ And half of it's private! I'll think about documenting it one day though if I find there's interest but it seems like I've been the only one interested as much in the API.

                              marcusquinn 1 Reply Last reply Reply Quote 3
                              • marcusquinn
                                marcusquinn @Lonkle last edited by

                                @Lonk Yeah, all the devs I work with go quiet when I tell them we're going to open-source years and millions of dollars of development work.

                                I believe in OS, making it happen just takes longer than even my ideologies hope for.

                                We're not here for a long time - but we are here for a good time :)
                                Jersey/UK
                                Work & Ecommerce Advice: https://brandlight.org
                                Personal & Software Tips: https://marcusquinn.com

                                Lonkle 1 Reply Last reply Reply Quote 2
                                • Lonkle
                                  Lonkle @marcusquinn last edited by Lonkle

                                  @marcusquinn said in Changes to WordPress apps:

                                  @Lonk Yeah, all the devs I work with go quiet when I tell them we're going to open-source years and millions of dollars of development work.

                                  I believe in OS, making it happen just takes longer than even my ideologies hope for.

                                  I'm an idealists. I was telling @girish in another thread - as long as you want to do that and you plan on doing it (we were talking about a box patch) "I don't care about when". This is obviously just my own opinion. But I feel like you're contributing ideologically. It's not the actual action of doing so, it's the intention, even if you don't succeed. At least, that's how I feel. Plus, I'm pretty patient. One day is a perfect answer. Life is crazy and hectic and ever changing.

                                  marcusquinn 1 Reply Last reply Reply Quote 0
                                  • marcusquinn
                                    marcusquinn @Lonkle last edited by

                                    @Lonk Watch this space - we'll make WP & Woocommerce a seriously fast and international enterprise app that anyone can build on!

                                    It all started because we created what we wanted to use for our needs but did it in a way that should serve almost any.

                                    We're not here for a long time - but we are here for a good time :)
                                    Jersey/UK
                                    Work & Ecommerce Advice: https://brandlight.org
                                    Personal & Software Tips: https://marcusquinn.com

                                    Lonkle 1 Reply Last reply Reply Quote 2
                                    • Lonkle
                                      Lonkle @marcusquinn last edited by Lonkle

                                      @marcusquinn said in Changes to WordPress apps:

                                      @Lonk Watch this space - we'll make WP & Woocommerce a seriously fast and international enterprise app that anyone can build on!

                                      It all started because we created what we wanted to use for our needs but did it in a way that should serve almost any.

                                      Oh, you've def piqued my curiosity. I'll be watching the space for sure. I've been needing to get back into the WP community (specifically Post Status was my favorite Wordpress Community) anyway so I'll start paying attention more.

                                      marcusquinn 1 Reply Last reply Reply Quote 0
                                      • marcusquinn
                                        marcusquinn @Lonkle last edited by

                                        @Lonk Did you try our plugin unloading plugin? That should give you some serious TTFBs ๐Ÿ˜‰

                                        We're not here for a long time - but we are here for a good time :)
                                        Jersey/UK
                                        Work & Ecommerce Advice: https://brandlight.org
                                        Personal & Software Tips: https://marcusquinn.com

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

                                          We've just switch https://healthshop.net to run on Cloudron. 6,000 products, multilingual, multi-everything โ€”ย and I know we still have a bunch more optimisations to go.

                                          If ever anyone says WP & Woo can't scale, send them my way ๐Ÿ™‚

                                          Looking forward to getting into more Cloudron App optimisations.

                                          Honestly, must have tried every other WP hosting on the planet by now - and none of them are truly optimised or even transparent about what they consider optimisation beyond their caching plugin masquerades.

                                          Performance is about uncached code optimisation, and I still can't imagine any of the other so-called enterprise ecommerce platforms being able to do what we can with good old WP and it's community.

                                          We're not here for a long time - but we are here for a good time :)
                                          Jersey/UK
                                          Work & Ecommerce Advice: https://brandlight.org
                                          Personal & Software Tips: https://marcusquinn.com

                                          Lonkle micmc 2 Replies Last reply Reply Quote 3
                                          • Lonkle
                                            Lonkle @marcusquinn last edited by

                                            @marcusquinn said in Changes to WordPress apps:

                                            If ever anyone says WP & Woo can't scale, send them my way

                                            I've been talking about the viability of Woo and Scaling for awhile so I'm excited to see what you've done (at a higher level than your normal communication about it) when you announce it fully. โ˜บ๏ธ

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

                                              @Lonk said in Changes to WordPress apps:

                                              The only think beyond those two things (which I could code easily to integrate with Cloudron) is real domain aliases (not redirections) would be needed.

                                              I'd love to see WordPress Multisite on Cloudron.

                                              As I understand it (one of) the problem(s) is that I don't think it's currently possible to have multiple domains pointing to the same Cloudron app, and imho we'd need that to work for Multisite to be useful (so that all the subsites within the multisite can be mapped to their own TLD).

                                              I guess that is what you mean by real domain aliases?

                                              I use Cloudron with Gandi & Hetzner

                                              Lonkle marcusquinn micmc 3 Replies Last reply Reply Quote 0
                                              • marcusquinn
                                                marcusquinn @Lonkle last edited by

                                                @Lonk Cool - I've never made any inroads in the WP & Woo community TBH, found it quite cliquey and in self-denial with many woocommerc.com plugins we had to fork and fix in desperation from their lack of quality-control.

                                                I've got a fair few core improvement recommendations that fell on deaf ears too - but I'm certain we could make it the operating-system for any organisation.

                                                I guess what we're doing is kinda like all the Cloudron Apps but as WP plugins. It is opinionated and anti-microservices though, so not for everyone - yet.

                                                If you have any contacts that want to get serious about this kind of ambition, I'm always available to talk with fellows that aren't afraid to shoot for the moon.

                                                We're not here for a long time - but we are here for a good time :)
                                                Jersey/UK
                                                Work & Ecommerce Advice: https://brandlight.org
                                                Personal & Software Tips: https://marcusquinn.com

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

                                                  @jdaviescoates said in Changes to WordPress apps:

                                                  As I understand it (one of) the problem(s) is that I don't think it's currently possible to have multiple domains pointing to the same Cloudron app, and imho we'd need that to work for Multisite to be useful (so that all the subsites within the multisite can be mapped to their own TLD).
                                                  I guess that is what you mean by real domain aliases?

                                                  Yes, a real domain alias so that Wordpress sees it and routes it accordingly. It's a built in feature of Wordpress in Multisite. It's unbelievably useful.

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

                                                    @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.

                                                    We're not here for a long time - but we are here for a good time :)
                                                    Jersey/UK
                                                    Work & Ecommerce Advice: https://brandlight.org
                                                    Personal & Software Tips: https://marcusquinn.com

                                                    Lonkle 1 Reply Last reply Reply Quote 1
                                                    • Lonkle
                                                      Lonkle @marcusquinn last edited by

                                                      @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 Reply Quote 1
                                                      • marcusquinn
                                                        marcusquinn last edited by

                                                        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.

                                                        We're not here for a long time - but we are here for a good time :)
                                                        Jersey/UK
                                                        Work & Ecommerce Advice: https://brandlight.org
                                                        Personal & Software Tips: https://marcusquinn.com

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

                                                          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/

                                                          Lonkle 1 Reply Last reply Reply Quote 7
                                                          • Lonkle
                                                            Lonkle @girish last edited by

                                                            @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.

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

                                                              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 Reply Quote 3
                                                              • jdaviescoates
                                                                jdaviescoates @Lonkle last edited by

                                                                @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

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

                                                                  @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!

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

                                                                    @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

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

                                                                      @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 Reply Quote 0
                                                                      • Lonkle
                                                                        Lonkle @jdaviescoates last edited by Lonkle

                                                                        @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 Reply Quote 0
                                                                        • girish
                                                                          girish Staff last edited by

                                                                          @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.

                                                                          imc67 Lonkle 2 Replies Last reply Reply Quote 2
                                                                          • imc67
                                                                            imc67 translator @girish last edited by

                                                                            @girish it was really as easy as the steps Iโ€™ve mentioned before.

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

                                                                              @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!

                                                                              imc67 Lonkle 2 Replies Last reply Reply Quote 1
                                                                              • Lonkle
                                                                                Lonkle @girish last edited by

                                                                                @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 Reply Quote 0
                                                                                • imc67
                                                                                  imc67 translator @girish last edited by

                                                                                  @girish huh why? These โ€œcodesโ€ / settings are even from a managed app on another Cloudron, arenโ€™t they the same for all?

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

                                                                                    @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)?

                                                                                    robi 1 Reply Last reply Reply Quote 0
                                                                                    • robi
                                                                                      robi @Lonkle last edited by

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

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

                                                                                      Life of Advanced Technology

                                                                                      imc67 1 Reply Last reply Reply Quote 2
                                                                                      • imc67
                                                                                        imc67 translator @robi last edited by imc67

                                                                                        @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 Reply Quote 0
                                                                                        • girish
                                                                                          girish Staff @imc67 last edited by 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).

                                                                                          imc67 Lonkle 2 Replies Last reply Reply Quote 4
                                                                                          • imc67
                                                                                            imc67 translator @girish last edited by

                                                                                            @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?

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

                                                                                              @girish said in Changes to WordPress apps:

                                                                                              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.

                                                                                              Where might I be able to find this bind password? I made up my own tiny PHP library for LDAP in the VPN Client and I did not use a bind password even though it's not required "for now". So, I would def like to fix that preemptively. ๐Ÿ˜…

                                                                                              But later when we fix the plugin to use LDAP credentials, it will stop working.

                                                                                              Did you write this pugin yourself or do you need to make the fix upstream with another team?

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

                                                                                                @imc67 said in Changes to WordPress apps:

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

                                                                                                Yeah. For LDAP, we don't have a mechanism to easily to turn it on/off dynamically ie after an app installed. Let me discuss this with @nebulon to see if this is something we should do for Cloudron 6 because it's easy to do on Cloudron side (but we have to test with all the apps to check how well they cope).

                                                                                                If it's urgent, the easiest way is to just:

                                                                                                1. Backup current app. Download the backup config
                                                                                                2. Make a new install of WordPress (Developer), you can keep the existing app running.
                                                                                                3. Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                                                                                                4. Login to WP of the new app and install authLdap plugin. After doing so, Restart WordPress. Cloudron will configure the LDAP plugin on restart.
                                                                                                5. If all looks good, you can switch the location
                                                                                                Lonkle jdaviescoates imc67 3 Replies Last reply Reply Quote 2
                                                                                                • girish
                                                                                                  girish Staff @Lonkle last edited by

                                                                                                  @Lonk said in Changes to WordPress apps:

                                                                                                  Did you write this pugin yourself or do you need to make the fix upstream with another team?

                                                                                                  It's authLdap. We have contributed patches in the past like this one. So, have to invest more time into adding bind password support.

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

                                                                                                    @girish said in Changes to WordPress apps:

                                                                                                    If it's urgent, the easiest way is to just:

                                                                                                    Backup current app. Download the backup config
                                                                                                    Make a new install of WordPress (Developer), you can keep the bet existing app running.
                                                                                                    Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                                                                                                    If all looks good, you can switch the location

                                                                                                    That answered my question, this won't support multisite yet, but I can make some manual DB changes to still make this work and understand Cloudron better, win-win. โ˜บ๏ธ

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

                                                                                                      @girish said in Changes to WordPress apps:

                                                                                                      Backup current app. Download the backup config
                                                                                                      Make a new install of WordPress (Developer), you can keep the existing app running.
                                                                                                      Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                                                                                                      If all looks good, you can switch the location

                                                                                                      Just did that. Worked a treat!

                                                                                                      I use Cloudron with Gandi & Hetzner

                                                                                                      1 Reply Last reply Reply Quote 2
                                                                                                      • imc67
                                                                                                        imc67 translator @girish last edited by

                                                                                                        @girish said in Changes to WordPress apps:

                                                                                                        Backup current app. Download the backup config
                                                                                                        Make a new install of WordPress (Developer), you can keep the existing app running.
                                                                                                        Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                                                                                                        If all looks good, you can switch the location

                                                                                                        just did that but the authLdap plugin is not installed after restoring the backup (a backup from before I manually added it).

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

                                                                                                          @imc67 said in Changes to WordPress apps:

                                                                                                          just did that but the authLdap plugin is not installed after restoring the backup (a backup from before I manually added it).

                                                                                                          You can just install it from WP Admin and restart WordPress (Cloudron will configure the plugin on restart). I will edit the instructions.

                                                                                                          imc67 1 Reply Last reply Reply Quote 2
                                                                                                          • imc67
                                                                                                            imc67 translator @girish last edited by

                                                                                                            @girish that worked, I even saw already the settings in the ldap plugin but still restarted the app to be sure.

                                                                                                            one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                                                                                                            Lonkle girish 2 Replies Last reply Reply Quote 0
                                                                                                            • Lonkle
                                                                                                              Lonkle @imc67 last edited by

                                                                                                              @imc67 said in Changes to WordPress apps:

                                                                                                              @girish that worked, I even saw already the settings in the ldap plugin but still restarted the app to be sure.

                                                                                                              one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                                                                                                              So the LDAP plugin "syncs" the WP user database with Cloudron's then? I wonder if it sync both ways. ๐Ÿค”

                                                                                                              And also, what did all of your Cloudron users import as in Wordpress with the "official" non-hack-ed way of enabling LDAP?

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

                                                                                                                @imc67 said in Changes to WordPress apps:

                                                                                                                one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                                                                                                                For consistency, this behaves similar to other apps. There is a default admin user. And then the admin user has to decide who else becomes admin or not. You can go to WP users and make specific users admin. The LDAP plugin actually has a DefaultRole field in it's settings but I noticed now that the setting is not preserved across restarts. I will get this fixed shortly.

                                                                                                                I will be fixing the managed WP to behave the same way (it doesn't even have an admin user at this point...).

                                                                                                                imc67 Lonkle 2 Replies Last reply Reply Quote 3
                                                                                                                • imc67
                                                                                                                  imc67 translator @girish last edited by

                                                                                                                  @girish clear and of course that changing of user rights worked. In this restore case there is no default admin anymore (admin - admin123) but of course the backed up admin user(s).

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

                                                                                                                    @girish Does the LDAP plugin used sync users one way from the Cloudron User DB to the Wordpress one? Does this sync happen at intervals or as soon as a user gets created on Cloudron?

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

                                                                                                                      @Lonk said in Changes to WordPress apps:

                                                                                                                      @girish Does the LDAP plugin used sync users one way from the Cloudron User DB to the Wordpress one? Does this sync happen at intervals or as soon as a user gets created on Cloudron?

                                                                                                                      @Lonk It doesn't sync users, no. Users have to login first to be known to WordPress.

                                                                                                                      Lonkle 1 Reply Last reply Reply Quote 1
                                                                                                                      • Lonkle
                                                                                                                        Lonkle @girish last edited by Lonkle

                                                                                                                        @girish said in Changes to WordPress apps:

                                                                                                                        @Lonk It doesn't sync users, no. Users have to login first to be known to WordPress.

                                                                                                                        Understood. That actually sounds like the perfect flow, I'll integrate it that way with my apps - is that how all of your LDAP integrations currently work with Cloudron store apps (no syncing, just adding LDAP users on demand with login hooks)? Just asking so I make sure to code my apps in the same way.

                                                                                                                        1 Reply Last reply Reply Quote 0
                                                                                                                        • micmc
                                                                                                                          micmc @marcusquinn last edited by

                                                                                                                          @marcusquinn said in Changes to WordPress apps:

                                                                                                                          We've just switch https://healthshop.net to run on Cloudron. 6,000 products, multilingual, multi-everything โ€”ย and I know we still have a bunch more optimisations to go.

                                                                                                                          I'm impressed at how fast that loads, the front page, and how fast we can start seeing those products' thumnails coming in. swift...

                                                                                                                          That's great opti man ๐Ÿ™‚ Mind to share the box config this site's running on? Where physically in the world is the box located?

                                                                                                                          If ever anyone says WP & Woo can't scale, send them my way ๐Ÿ™‚

                                                                                                                          Yeah, that I know for a long time ๐Ÿ˜‰

                                                                                                                          Honestly, must have tried every other WP hosting on the planet by now - and none of them are truly optimised or even transparent about what they consider optimisation beyond their caching plugin masquerades.

                                                                                                                          So much so...

                                                                                                                          Thanks bro.
                                                                                                                          Andy


                                                                                                                          https://marketingtechnology.agency
                                                                                                                          For cutting edge web technologies

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

                                                                                                                            @jdaviescoates said in Changes to WordPress apps:

                                                                                                                            @Lonk said in Changes to WordPress apps:

                                                                                                                            The only think beyond those two things (which I could code easily to integrate with Cloudron) is real domain aliases (not redirections) would be needed.

                                                                                                                            I'd love to see WordPress Multisite on Cloudron.

                                                                                                                            As I understand it (one of) the problem(s) is that I don't think it's currently possible to have multiple domains pointing to the same Cloudron app, and imho we'd need that to work for Multisite to be useful (so that all the subsites within the multisite can be mapped to their own TLD).

                                                                                                                            I guess that is what you mean by real domain aliases?

                                                                                                                            I can for sure confirm that WPMU, or multisite, works pretty well in cloudron for a start. It works pretty smooth and well in /directory mode as this is how I've set it up for my own needs. For example, each of the demo sites in the portfolio you see on this website https://marketingtechnology.agency/web-design-folio is running on its own full wp instance on a multisite install on cloudron.

                                                                                                                            Of course this is manually installed and setup. I do not remember if it was possible to at least install the sub-domain version, but I think not and it might have been discussed with @girish that this is still a wall to bust.

                                                                                                                            I'm using and dev on wp for I think almost since it exist and as far as I can see there's only one plugin that I know of that was able to manage WPMU with TLD for each sub-instance on a mulisite and it was at wpmudev.com for whom I've been working a few months btw, but that was back in 2014. And I think they've since then released all there plugins and themes to "public domain" or something I can't recall lol ... however if that plugin is still available somewhat since it is GPL there certainly something that could be pur out of this, i believe.

                                                                                                                            Andy


                                                                                                                            https://marketingtechnology.agency
                                                                                                                            For cutting edge web technologies

                                                                                                                            jdaviescoates Lonkle 2 Replies Last reply Reply Quote 0
                                                                                                                            • First post
                                                                                                                              Last post
                                                                                                                            Powered by NodeBB