Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Running your own package server

A package server is a static HTTPS folder with index.xml, the .ezpkg archives and their thumbnails. This page gives the folder layout, a complete index.xml, how to host it on GitHub Pages as 7x does or on any web…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/site-packages/your-own/running-your-own-package-server.md

On this page

Running your own package server

This page is for developers, agencies and hosts who want installations to download site packages from a server of their own: for packages that are not public yet, for a set tested for one customer, or as a mirror. Nothing on a package server runs code; it is a folder of files served over HTTPS.

7x and the Exponential Foundation strongly encourage you to also submit your site package by pull request to se7enxweb/exponential.packages.exponential.earth, the server every installation reads by default: see Contribute your site package.

Contents

  1. What a server must answer
  2. The folder layout
  3. A complete index.xml
  4. Hosting on GitHub Pages
  5. Hosting on any web server
  6. Limits and checks of the clients
  7. Checklist

What a server must answer

The clients read one file, <index URL>/index.xml, and then each archive at the url the index gives:

ClientReadsCode
setup wizard, kickstarter, exp:installpackage.ini [RepositorySettings] RemotePackagesIndexURL + /index.xmlkernel/setup/steps/ezstep_site_types.php
ezupdate (Package servers, fetch)the server's URL + /index.xmlextension/ezupdate/classes/ezupdatepackageservers.php

The 7x server answers at https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/index.xml. More on What the package server is.

The folder layout

Mirror the 7x layout, so RemotePackagesIndexURLBase works for your server too (the kernel appends /<major.minor>/<version> when RemotePackagesIndexURL is empty):

https://packages.example.com/exponential/
└── 6.0/
    └── 6.0.15/
        ├── index.xml
        ├── acme_site.ezpkg
        ├── acme_site_democontent.ezpkg
        └── thumbnails/
            └── acme_site.png

One folder per Exponential release keeps old installations working: an installation of 6.0.14 keeps reading its folder while you publish for the next release.

A complete index.xml

<?xml version="1.0"?>
<packages vendor="acme">
  <package name="acme_site_democontent" type="contentobject"
           url="https://packages.example.com/exponential/6.0/6.0.15/acme_site_democontent.ezpkg"/>
  <package name="sevenx_classes" type="contentclass"
           url="https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/sevenx_classes.ezpkg"/>
  <package name="acme_site" version="1.0.0-1" type="site"
           summary="Acme starter site"
           description="What an editor gets after installing it."
           url="https://packages.example.com/exponential/6.0/6.0.15/acme_site.ezpkg"
           thumbnail_url="https://packages.example.com/exponential/6.0/6.0.15/thumbnails/acme_site.png"/>
</packages>
  • The root element must be <packages>; the wizard reports "Malformed index file." otherwise.
  • Every <package> needs name and url; site packages also type="site" (the wizard lists only those), a summary, a version and a thumbnail_url. The 7x index uses the same attributes.
  • Every package a site package requires must be in the same index. The wizard looks a required package up in the index it read, not on other servers. Its url may point anywhere, including the 7x server, as sevenx_classes does above.

The format in full: The index.xml format.

Hosting on GitHub Pages

The 7x server is the repository se7enxweb/exponential.packages.exponential.earth published by GitHub Pages:

FileRole
exponential/6.0/<version>/the release folders
CNAMEthe custom domain the Pages site answers on
.github/workflows/workflow.ymlon every push: checks out the branch master, generates directory listings with jayanta525/github-pages-directory-listing, uploads the tree and deploys it with actions/deploy-pages; one deployment at a time (concurrency: pages)

To do the same: create a repository, add the folders and a copy of the workflow (change ref: to your default branch), enable GitHub Pages for the repository, and optionally add a CNAME with your domain. Details on The package server on GitHub.

Note

Each deployment publishes the whole tree as of its commit, and, as settings/package.ini puts it, "a package server that is being republished answers with errors for a few minutes". The setup wizard retries for that reason (DownloadAttempts, DownloadRetryDelays[]); see When the package server cannot be reached.

Hosting on any web server

Any server that serves static files over HTTPS works:

rsync -av exponential/ [email protected]:/srv/packages/exponential/
curl -sI https://packages.example.com/exponential/6.0/6.0.15/index.xml | head -1

Serve the folder read-only, with no scripts, and keep the files in git so every published state can be traced.

Limits and checks of the clients

CheckSetup wizardezupdate
Schemeany URL PHP can fetchhttps:// only, also for redirects
HTTP statusan answer other than 200 fails the attemptan error status fails
Archivemust start with the gzip signature, must not be empty or shorter than announcedat most 256 MiB
Indexparsed as XML, root <packages>at most 1 MiB, root <packages>
RetriesDownloadAttempts (3) with DownloadRetryDelays[] (2, 5, 10 s)none
TimeoutsDownloadTimeout 300 s, DownloadConnectTimeout 30 s300 s, connect 15 s

Use HTTPS for every URL in your index so both clients accept it.

Checklist

  • To do: curl -sI on index.xml, each archive and each thumbnail answers 200.
  • To do: xmllint --noout index.xml passes.
  • To do: Each archive passes php ezpm.php validate (Rebuilding with build.sh).
  • To do: Every <require> of every site package has an entry in the index.
  • To do: Index version values equal the archives' <number>-<release>.
  • To do: A dry run against the server succeeds (Testing in a sandbox).

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x