Installation
Installation
This guide installs a fresh site. You get a working site on the Default project, the admin at /iPanel/, a first administrator account and a one-time Hub setup code. The site and the admin come already built, so you need PHP and a database only. Connecting the site to iSPA Hub is optional and can be done later from inside the admin.
What is in the download
The download has the basics: posts and pages, SEO, the AI assistant, automation, permissions, backup and page layout (the Core, Content and Widget modules). Other modules are installed from the admin under Settings → Modules once the site is connected to iSPA Hub. See Modules from iSPA Hub.
What you need
- PHP 8.3 or newer with the usual Laravel extensions (
ctype,curl,fileinfo,json,mbstring,openssl,pdo,tokenizer,xml) and the PDO driver of your database (pdo_mysql,pdo_pgsqlorpdo_sqlite) - Composer 2
- a database: MySQL 8 or MariaDB 10.6 (the default in
.env.example), PostgreSQL, or SQLite for a trial. Create an empty database and a user first; the installer creates the tables - a web server that serves the
public/folder (nginx, Apache, Laravel Herd, orphp artisan servefor a trial) - optional: Node.js 20 or newer and pnpm 10, needed only for
./ispa start,./ispa buildand for showing the admin screens of modules installed from the Hub
Steps
1. Create the site
composer create-project ispa-tech/ispa-cms my-site
cd my-site
If you downloaded ispa-cms-<version>.zip from the GitHub release instead, it holds the core with the site and admin already built but no vendor/ folder. Unzip it into an empty folder, then run:
composer install --no-dev --optimize-autoloader
cp .env.example .env
2. Configure .env
Set DB_CONNECTION, DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME and DB_PASSWORD. For SQLite set DB_CONNECTION=sqlite and DB_DATABASE to the absolute path of an empty file. Set APP_URL and APP_DOMAIN to the address you will open in the browser; the two must match. Leave APP_KEY empty, the installer generates it.
.env.example starts with a plain file cache and Redis switched off, so a new machine needs no Redis. Turn it on later with CACHE_DRIVER=redis and REDIS_ENABLE=true.
3. Run the installer
php artisan cms:install --admin-email=you@example.com
The installer checks the project folder, the writable folders and the database connection, then asks for the first administrator (username webmaster by default and a password of at least 12 characters; leave it empty to have one generated). It creates the tables, loads modules, permissions and translations, creates the administrator, links public/storage, writes public/iPanel/config.js and prints the Hub setup code. A generated password is printed once: save it and change it after you sign in.
Running it again is safe: it changes nothing that exists and prints no password. In a script add --no-interaction.
4. Open the site
Point your web server at public/, or for a trial run php artisan serve. The public pages of the Default project load at once; the admin is at /iPanel/ on the same address. Sign in with the email or the username.
The admin settings file
The admin reads public/iPanel/config.js at run time. php artisan cms:admin-config generates it from .env (APP_URL, SESSION_DOMAIN, SESSION_SECURE_COOKIE, ISPA_ADMIN_AUTH_KEY, PLATFORM_HUB_URL); cms:install runs it for you. Run it again after you change any of those values and do not edit the file by hand. Ask your web server to send Cache-Control: no-cache for this one file so changes show at once.
Making your own changes
projects/Default and the core modules in cms/ belong to the core and are replaced when the core is updated, so do not edit them in place. To change the site's templates, copy projects/Default to projects/<YourName>, set VITE_TEMPLATE_FOLDER=<YourName> in .env and edit your copy. Put your own modules in cms/<YourModule>. Template changes need ./ispa build, which uses Node and pnpm.
Connecting to iSPA Hub
A new site is not connected to the Hub and does not need to be. The Hub adds the module store, grants for premium modules and iSPA services (translation, text to speech).
- Create an account at ispa.tech and sign in to the customer portal.
- In Websites & domains choose Connect a website, enter the domain without
wwwand create the website codes. Copy the secret code at once: it is shown only once. - In the admin open Settings → Modules, tab Module store, choose Connect to iSPA Hub, and enter the secret code and the setup code printed by
cms:install(it works once and is valid for 7 days). - The Hub calls your domain back to check it. The domain must point to this server and be reachable over HTTPS. Development domains (
localhost,*.test, private addresses) get free modules only.
If the setup code is lost or expired, print a new one:
php artisan cms:hub-setup-code
See Modules and iSPA Hub for what the site sends to the Hub and how to control it.
One-click core updates
The admin can update the core with one button (Settings → Modules). The web server does not change the code itself: it leaves a request and a small job, the upgrade runner, picks it up every minute as the user that owns the code. Add the line that cms:install prints to that user's crontab; it looks like this:
* * * * * cd /path/to/my-site && php ispa upgrade --run-requested >/dev/null 2>&1
Without the runner the button stays off, and ./ispa upgrade on the command line still works. The runner refuses to run as root, and the site folder must not be writable by group or others. Sites deployed as releases behind a current link upgrade with ./ispa upgrade.
Running without the Hub
The public site, the admin, the content modules and everything that does not need the Hub keep working. Only the module store, premium module grants and Hub-run services wait for a connection.
Troubleshooting
There is no .env file: copy.env.exampleto.env, set the database and runcms:installagain.The database is not reachable: check theDB_*values and that the database and user exist.The project folder projects/... does not exist:VITE_TEMPLATE_FOLDERnames a project that is not in this tree; useDefault.- A blank page or missing styles after changing templates: run
./ispa build. - The admin shows old settings after you changed
.env: runphp artisan cms:admin-configand reload with the cache cleared. - Redis errors on a new machine: set
CACHE_DRIVER=fileandREDIS_ENABLE=falsein.env.

