This is an old revision of the document!
Set up further organizations
When it is advisable to set up further organizations ?
Admidio has been designed to handle different organizations. All data were always stored in a function of an organization. However, you had to manually set up to version 2.1 any other organization. Since version 2.1, there is a wizard for this purpose, which performs this task, thus greatly simplifies the setup for each user.
Under more efficient organization we understand that organizations that are involved in any relationship to each other, share a common Admidio database. The individual organizations can have their own websites, or share a common website.
Organizations that share a Admidio database can access to common registrations of members. If a user is active in several of these organizations, so just one profile of the user is stored in the database, which is available in all organizations. If the user Updates the profile in organization X, so organization Y can see this directly. The allocation to the organizations can here, as usual, freely be done through role assignments. Users with appropriate permissions can access to all registered users and set up a user who was previously established only in Organization X, conveniently by role assignment also to be a member of the own organization. The permission management is still depending on on roles, so that a user in an organization can be webmasters and in the other organization has only the right to maintain the own profile.
How do I set up another organization?
- Log in to your Admidio installation as administrator and start the wizard by clicking on “Add another organization” under Settings → Organization.
- Der Assistent möchte nun zuerst das Kürzel, den Namen und die E-Mail-Adresse für Benachrichtigungen der neuen Organisation wissen. Dann auf “Organisation einrichten” klicken.
- The wizard now first wants to know the abbreviation, name and e-mail address for notifications of the new organization. Then click on “Set up organization”.
- The new organization is now completely set up in the database. If you now call the login dialog, a new field Organization appears in version 2.3 and higher where you can select the previous and the new organization. The organization from the config.php is always preselected here. To log on to the other organization this organization must be selected and the user must be a member of at least one role of this organization.
How do I set up another organization ?
- First, you have to download your current Admidio Version again Download Version again.
- Now you copy the folder adm_install only in the directory of your existing output configuration.
- Now start the wizard by visiting the following script:
http://www.your-admidio-installation.de/adm_install/new_organization.php
- In the last step of the wizard, a configuration file is created, which you can download and save. This allows the new organization to run on another web space with a separate file system. However, you have to adapt in the configuration file the variable $g_root_path to the other domain / subdomain / folder accordingly. Now you can press the button Set up organization and the new organization will be set up in the database.
- The new organization will be ready in the database. If you call now the login dialog, so there is, since version 2.3 shown, a new field Organization in which the previous and the new organization can be selected. It is always preselected the organization of the config.php. To sign up for the other organization this must be selected and the user must be a member of at least one role of this organization.
How do I set up a separate installation of another organization ?
If you have more than one organization established in a database, so there is only once an organization from which the data for logged out users are displayed. This is the organization of the config.php. The other organizations can be selected during the registration and therefore are only available for registered users.
But if you want to run even more organizations as an independent website, in which the data is displayed also if a user is logged out, so a separate Admidio installations must be set up for these organizations.
The following steps are necessary:
- The database for the new organization is set up, as described in the previous chapter.
- Now you have to set up a new web space. Charging to the exact same Admidio version, as previously used in your initial configuration, and put them down in a new place on your server.
Did you have Admidio 2.3.x installed, the new organization must also get the version 2.3.x. The 2.2.x would cause problems. If this version is no longer available exactly the initial configuration should be updated to the latest version and then this version can also be used for the new organization. - Now delete immediately the folder adm_install and don´t start an installation or update.
- Copy only the downloaded config.php, descripted in the previous section, into the main folder of your new Admidio installation. If you no longer have this file, you can take the config file of your original installation and adjust the variables $g_organization and $g_root_path. Make sure at once again that the variable $g_root_path points in the configuration file to the correct path of your new organization.
- Now you can login with data of the webmaster and set up the new organization.
If the Organisation selection box shall no longer be viewed in the logon dialog, so this can be adjusted in the Organization Settings under Organizational and Regional Settings with Organization Selection Show switched to off.
In future updates, make sure that all the installations have the same major version. So Organisation A has version 2.3 and Organization B must then also have the version 2.3. Had organization B version 2.2 would arrive there on the page errors. The minor version, for example, 2.3.2 may vary, recommended is here but also a synchronous version level.