Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 03:36 pm EST

Geeklog Forums

Multi plugin - Run multiple sites using one code base


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
I'm working on a plugin call Multi witch allow to run multiple sites using one code base.

What the plugin actually do is to create new sites based on the same core.

To perform updates and why not some basic admin tasks on every sites created by the multi plugin, I need to record and store db informations.
Where is the securest area to store these informations? DB? File outside the web root?

::Ben


I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
In the first working version Multi plugin extend siteconfig and dbconfig files to handle other sites.

Does it will make sense to?

- Connect to db main site,
- Retrieve conf values ($_CONF['site_enabled'], $_CONF_FCK['imagelibrary']) and DB settings for the second domains.
- Break the connexion.
- Etablish a new db connection with the right settings

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Not sure if you could make this work as a plugin. I think this is something that has to be rolled into Geeklog itself, especially the install script.

There's a wiki article about Multi-Site Setups that discusses some of the issues.

As for a place to store things: There's the gl_vars table in the database.

Changing db-config.php and siteconfig.php should work for now, although I won't guarantee that it'll work in the future. The install script does some simple search/replace operations on those files and I'm wondering if we shouldn't make that more sophisticated and robust in the future.

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
An alpha version for mysql is working. It's now able to create a lot of new geeklog 1.7.0 installs and make the databases upgrade to 1.7.1. The upgrade process also take care of the bundle plugins upgrade.

The only manual operation is the files update of the core and plugins. This can be the next step: Download the archive from geeklog.net, extract files and move them to the right place.

I will try to release a beta :chestslam: before next week.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
The upgrade process also take care of the bundle plugins upgrade
.
Plugins upgrade work for the main site...
Confused But how to make a remote plugin upgrate :banghead:

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Upgrades for core and bundle plugins will be made with the traditional upgrade script. If you run 5 sites with one code base, you will need to visit each url namesite/admin/install/index.php and run the upgrade process.

First multi plugin release will be available today.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EST. The time is now 03:36 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content