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


Navigation

    Cloudron Forum

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

    SOLVED Official Multisite Support for the Wordpress app (managed and unmanaged)

    Feature Requests
    aliases wordpress
    8
    21
    205
    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.
    • Lonk
      Lonk last edited by Lonk

      I was wrong, aside from adding support for domain aliases as noted above, there is one more change needed to make this have feature parity with Wordpress Single Site installations. I was looking up the Cloudron source code and it uses the WP CLI to run cron manually every minute on the base domain, this cron.sh script (https://git.cloudron.io/cloudron/wordpress-unmanaged-app/-/blob/master/cron.sh) would need to be edited to something like:

      WP_PATH="/path/to/wp"; for SITE_URL in $(wp site list --fields=domain,path,archived,deleted --format=csv --path="$WP_PATH" | grep ",0,0$" | awk -F ',' '{print $1 $2}'); do wp cron event run --due-now --url="$SITE_URL" --path="$WP_PATH"; done

      So that it runs that same command on every active site.

      1 Reply Last reply Reply Quote 1
      • Lonk
        Lonk last edited by

        I think the demand for domain aliases is there so this issue will likely just fix itself. But I'll write a modified https://git.cloudron.io/cloudron/wordpress-unmanaged-app/-/blob/master/cron.sh to automatically trigger every site within a multisite's cron jobs (yeah, you have to cron per sub-site, it's silly). Technically, right now, even with subdirectories, I don't think any cron's except for the primary domains are running rn for the people that have multisite installed with subdirectories (like me).

        1 Reply Last reply Reply Quote 0
        • atrilahiji
          atrilahiji App Dev last edited by atrilahiji

          I've been thinking, I would be tempted to keep going with separate WP instances (to more finely control resource allocation to specific clients) if we could create some sort of "app folder" system. Or app categories.

          Not trying to invalidate this issue because its still important. But this just popped into my head. I can make a request for it.

          I'm imagining something like app folders on iOS or Android or like collapsable sections.

          Lonk 2 Replies Last reply Reply Quote 1
          • Lonk
            Lonk @atrilahiji last edited by Lonk

            @atrilahiji I agree that these two would be separate issues. I plan on adjusting the Cloudron Wordpress Project for Multisite support after @girish and @nebulon are finished with 6.0. Which I’m really hoping will come with domain aliases. 🤞 Cause I can do the rest very easily (domain alias code is needed at the Cloudron level and it turned out to be a pretty popular feature request by itself which was cool). I have a decade of Wordpress (and WooCommerce) development experience and I found a new platform that I really love to work out it in (Cloudron).

            The funny thing is, was that this platform was the one cloud panel I found with a no-op for DNS domain lookup which I needed for a specialized project I was working on. And I just fell in love with the platform after that - then even more after being part of the forums here. Everyone here is encouraging and it makes development fun.

            1 Reply Last reply Reply Quote 2
            • Lonk
              Lonk @atrilahiji last edited by

              @atrilahiji But definitely put in a request for folders for apps. That’s will def beneeded in the future with all the apps we’re coming out with now!

              atrilahiji 1 Reply Last reply Reply Quote 0
              • atrilahiji
                atrilahiji App Dev @Lonk last edited by

                @Lonk Will do! And same, I am hoping to be able to contribute by packaging some apps and develop some apps (details coming soon) that will be set up to work quite nicely with Cloudron. Huge fan of the platform and the annual cost is a small price to pay to have this wonderful hosting experience and ensure that our lords and saviors @girish and @nebulon are compensated for their hard work.

                Lonk 1 Reply Last reply Reply Quote 0
                • Lonk
                  Lonk @atrilahiji last edited by

                  @atrilahiji I may have gotten a little trigger happy with the feature requests today. I already put yours in. 😅

                  https://forum.cloudron.io/topic/3220/organize-apps-into-folders-via-tags/8

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

                    I loved WPMU back in the early 2000s and always used to install it with SQLite. Why expose a networked DB?

                    It's harder to do in Cloudron as each app is tied to a single domain + aliases if set. This goes further with SSL certs and rev-proxy setup.

                    If all the feedback loops required are addressed it would be a welcome addition as I've just been handed ~278 domains to deal with 😈

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

                      @robi As soon as Domain Aliases become a thing on Cloudron (right now they're just redirections), I'll hook Wordpress Multisite to the Cloudron API so you don't have to leave Wordpress to create the new domain either (since domain mapping is built directly into WP Multisite now).

                      I'll merge request the unmanaged and managed Wordpress installations with my Multisite Optimizations. But waiting for Cloudron 6.0 to do so due to Wordpress changes being released on that version, and it's release date is getting closer.

                      robi D 2 Replies Last reply Reply Quote 1
                      • robi
                        robi @Lonk last edited by

                        @Lonk awesome, sounds like a plan.

                        BTW, for those that still have to manage many WP sites individually, I recently came across something that makes it easier and it's free, called GoDaddy Pro.

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

                          @robi said in Official Multisite Support for the Wordpress app (managed and unmanaged):

                          BTW, for those that still have to manage many WP sites individually, I recently came across something that makes it easier and it's free, called GoDaddy Pro.

                          I hate GoDaddy. Horrible company. 😛

                          MainWP is similar and GPL (with premium add-ons):
                          https://mainwp.com/

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

                            @jdaviescoates Can vouch for MainWP, it’s a pretty cool concept because it runs inside of another WP installation which makes making add-ons (I make a lot of WP plugins) for it so much easier.

                            1 Reply Last reply Reply Quote 3
                            • D
                              derin @Lonk last edited by

                              @lonk Is this any closer to becoming a reality. I feel like running a multisite on cloudron would be a piece of cake if this was a thing.

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

                                This is implemented now - https://forum.cloudron.io/topic/4516/wordpress-multisite

                                D 1 Reply Last reply Reply Quote 2
                                • D
                                  derin @girish last edited by

                                  @girish YAAAS so happy.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post