What a site installer package is
This page is for anyone who chooses a site package in the setup wizard, sets one in kickstart.ini, or passes one to
exp:install --package, and wants to know what that choice really is. It answers: what is a site package, what does
it contain, what does it leave to other packages, and which ones exist.
Contents
- In one paragraph
- The three parts of a site package
- A worked example: sevenx_multisite
- The packages a site package requires
- The site packages of 6.0.15
- What a site package is not
- Related pages
In one paragraph
A site installer package, or site package, is an Exponential package whose package.xml says
<type value="site"/>. It describes a whole starting site, but it carries very little of that site itself: it
names the packages that hold the content classes, the content, the extensions and the designs
(<dependencies><requires>), and it carries PHP install scripts (<settings><settings-file>) that the installer
calls to write the siteaccess settings, roles and preferences. The setup wizard, the kickstarter and exp:install
only offer packages of this type as the site to install
(eZStepSiteTypes::fetchAvailableSitePackages() filters on 'type' => 'site', and the remote list keeps only index
entries with type="site").
The three parts of a site package
| Part | In package.xml | What it does |
|---|---|---|
| Description | <name>, <summary>, <description>, <vendor>, <version>, <licence>, thumbnail in <files> | What the wizard shows on the site selection page |
| Requirements | <dependencies><requires><require type="ezpackage" .../> | The packages that are fetched with it and installed |
| Install scripts | <settings><settings-file filename="..."/>, files in settings/ | PHP functions the Create sites step calls at fixed points |
Every site package of the 6.0.15 index has install_type="import" and an empty <install/>: the site package itself
installs nothing. What ends up on the site comes from the packages it requires and from its install scripts. See
Import versus install.
A worked example: sevenx_multisite
sevenx_multisite is the default site package of exp:install and of exp:kickstarter ini --yes. Its source is the
folder packages/sevenx_multisite/ of se7enxweb/sevenx-ezpackage.
Its archive on the package server contains:
documents/LICENCE
files/default/image/logo.png
files/default/thumbnail/thumbnail.png
package.xml
settings/ini-admin.php
settings/ini-common.php
settings/ini-site.php
settings/install-scripts.php
settings/post-install-fix.php
settings/preferences.php
settings/roles.php
settings/sevenx-multi-site-installer.phpThe parts of its package.xml that matter here (shortened; the maintainer e-mail is left out):
<package version="6.0.15-0" development="false" is_active="true" install_type="import">
<name>sevenx_multisite</name>
<vendor>7x</vendor>
<type value="site" />
<version>
<number>6.0</number>
<release>15-stable</release>
</version>
<licence>GPL</licence>
<dependencies>
<requires>
<require type="ezpackage" name="sevenx_classes" min-version="5.1" />
<require type="ezpackage" name="sevenx_multisite_democontent" min-version="5.1" />
</requires>
</dependencies>
<settings>
<settings-file filename='ini-site.php'/>
<settings-file filename='ini-admin.php'/>
<settings-file filename='ini-common.php'/>
<settings-file filename='sevenx-multi-site-installer.php'/>
<settings-file filename='install-scripts.php'/>
<settings-file filename='roles.php'/>
<settings-file filename='preferences.php'/>
</settings>
<install />
<uninstall />
</package>So installing "sevenx_multisite" means: import it, import and install sevenx_classes (the content classes) and
sevenx_multisite_democontent (content classes and the demo content), and run the installer class in
sevenx-multi-site-installer.php through the hooks in install-scripts.php, ini-*.php, roles.php and
preferences.php. The details of that installer are in
The multisite installer script.
Note
The layout rows (explayouts_* tables) of a sevenx_multisite site are not in any package. The installer seeds
them from the share/ folders of extensions; see
Layouts data and share DBA files.
The packages a site package requires
The required packages are ordinary packages with install_type="install" (or none, which means the same) and real
install items. In the 6.0.15 index they are:
| Type | Packages | Install items they carry |
|---|---|---|
contentclass | sevenx_classes, ezwebin_classes, ezflow_classes, ezdemo_classes | ezcontentclass, one per class |
contentobject | sevenx_multisite_democontent(_clean), cjw_multisite_democontent, sevenx_democontent(_clean), sevenx_banners, the ezwebin_, ezflow_ and ezdemo_ content packages | ezcontentobject (one item for all objects), some also ezcontentclass |
extension | sevenx_extension, ezwebin_extension, ezflow_extension, ezdemo_extension, ezpaypal_extension, ezwt_extension, ezstarrating_extension, ezgmaplocation_extension | ezextension |
sitestyle | sevenx_design_blue, _cleangray, _gray, the ezwebin_design_ three, ezflow_design | ezfile (with install_type="import") |
Each type and handler is explained in Package types and Install items and handlers.
The site packages of 6.0.15
The index at https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/index.xml lists twelve
packages with type="site":
| Package | Summary in the index | Requires (count) |
|---|---|---|
sevenx_multisite | 7x MultiSite Default Installation | 2 |
sevenx_multisite_clean | 7x MultiSite Default Installation (without demo content) | 2 |
cjw_multisite | CJW Multisite | 2 |
sevenx_site | 7x Simple Website Interface | 11 |
sevenx_site_clean | 7x Simple Website Interface (without demo content) | 10 |
ezflow_site, ezflow_site_clean | eZ Flow, eZ Flow (without demo content) | 9 each |
ezwebin_site | Website Interface | 11 |
ezwebin_site_clean | Website Interface (without demo content) | 10 |
ezdemo_site, ezdemo_site_clean | Exponential Demo Site, ... (without demo content) | 8 each |
plain_site | Plain site | 0 |
A _clean variant requires the _clean content package instead of the demo content one. The per-package pages are
sevenx_multisite and cjw_multisite; the full list of
files on the server is in What is on the package server.
What a site package is not
- Not an extension. Extensions are installed from Composer or Git, or from packages of type
extension; a site package only names them. - Not the whole site. Classes and content come from the packages it requires; layouts of sevenx_multisite come from extension share files.
- Not a backup. A site package builds a new site. To move an existing site, see ezpm, the package manager on the command line.
- Not installed by itself in Setup > Packages. Its package page says there is nothing to install, because its
install type is
import.
Related pages
- Site package basics
- Site packages: start here
- Contribute your site package: built your own? 7x and the Exponential Foundation strongly encourage you to submit it by pull request.
- Choosing an install method, 4.3 Site packages
- Site packages for hosts
- Site packages and the themes that ship
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.