# Template for multiple sites

**URL:** <https://ask.gibbonedu.org/t/template-for-multiple-sites/3564>\
**Category:** Installation\
**Created:** [June 15, 2022, 12:33pm UTC](https://ask.gibbonedu.org/t/template-for-multiple-sites/3564 "2022-06-15T12:33:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![achief](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/a/ea666f/32.png) [@achief](https://ask.gibbonedu.org/u/achief)\
**Post date:** [June 15, 2022, 12:33pm UTC](https://ask.gibbonedu.org/t/template-for-multiple-sites/3564/1 "2022-06-15T12:33:36Z")

</div>

Hello Admins,

If I am planning to deploy multiple Gibbon installs that will share some common config settings, for example:

- Parent cannot browse the library
- Default loan length for a library item is 21 days
- string replacements

What would be the best way to customize the first site and then export those settings and then merge them to the rest of the sites?  
In a way, I am trying to find a way of creating a Gibbon site template.

---

<div class="post-metadata">

**Author:** ![achief](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/a/ea666f/32.png) [@achief](https://ask.gibbonedu.org/u/achief)\
**Post date:** [June 15, 2022, 4:01pm UTC](https://ask.gibbonedu.org/t/template-for-multiple-sites/3564/2 "2022-06-15T16:01:59Z")

</div>

Maybe my title “template for multiple sites” is not the most appropriate. I would likely use “How to migrate preferences to another Gibbon installation”.

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [June 16, 2022, 12:58am UTC](https://ask.gibbonedu.org/t/template-for-multiple-sites/3564/3 "2022-06-16T00:58:08Z")

</div>

Hi achief, do you have access to your database? You could export the gibbonPermission table and import it into another database, assuming you had the same modules installed and same roles in both systems. You could likely do the same with the gibbonString table.

Another slightly more advanced way to do this could be to install a copy of Gibbon, set all the settings you want, then export the database. Then, for each of your schools, rather than installing from the interface, you could add all the Gibbon files and import that copy of the database. After importing, you’d need to go into the gibbonSetting table and edit the basePath and baseURL to make sure they match the server paths of the new install. You’d also likely need to edit the config.php for each school to enter your database details, and change a few characters in the guid to make sure it’s unique for each one.

---

<div class="post-metadata">

**Author:** ![achief](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/a/ea666f/32.png) [@achief](https://ask.gibbonedu.org/u/achief)\
**Post date:** [June 16, 2022, 7:05am UTC](https://ask.gibbonedu.org/t/template-for-multiple-sites/3564/4 "2022-06-16T07:05:45Z")

</div>

Hi @ross. Yes, I do have access to the database.

I like both options, it is just that I would need to learn which DB table does what. Also, I would have to identify which tables/fields represent the site’s identity, so I always make sure to change those values too.

I like option number more as it would allow me to have that “template” site that i could customize over time and use as my current "preferences “template”.

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [June 17, 2022, 3:31am UTC](https://ask.gibbonedu.org/t/template-for-multiple-sites/3564/5 "2022-06-17T03:31:23Z")

</div>

Sounds like a plan. The most important fields to change after install would be the basePath and baseURL, after that you could login to the installation and set the school name in System Settings and other details via the interface.

---

<div class="post-metadata">

**Author:** ![achief](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/a/ea666f/32.png) [@achief](https://ask.gibbonedu.org/u/achief)\
**Post date:** [June 17, 2022, 4:50am UTC](https://ask.gibbonedu.org/t/template-for-multiple-sites/3564/6 "2022-06-17T04:50:10Z")

</div>

> Sounds like a plan. The most important fields to change after install would be the basePath and baseURL, after that you could login to the installation and set the school name in System Settings and other details via the interface.

This makes the process much easier. Thanks for this tip.
