Install CRMSO.
Customers, deals, quotes, invoices, payments and a client portal for one company, on your own server.
- Time
- About 15 minutes, most of it waiting for the first build.
- Server
- Linux, Docker 24+, 2 GB RAM, 10 GB disk
- Release file
crmso-<version>.tar.gz- Install folder
/opt/crmso
What you need.
- A Linux server (a VPS is fine) with at least 2 GB of RAM, 1 vCPU and 10 GB of free disk to start with, plus room for your files and backups. Debian and Ubuntu are the usual choice.
- Docker 24 or newer with the Compose plugin:
docker compose versionmust print a version. - A domain name whose DNS record already points at the server, for example
crm.example.com. An IP address does not work: the licence is bound to the domain. - Ports 80 and 443 open to the internet and not used by another program. The install gets and renews its HTTPS certificate by itself (Let's Encrypt).
- Outbound HTTPS to
licence.sophario.com(activation, checks, updates), Docker's image registry and Let's Encrypt. - Your licence key (
SOPH-…) and the release archive, both on your buyer page. - An SMTP account for outgoing email. You can add it during setup or later.
Install.
Download crmso-<version>.tar.gz from your buyer page and copy it to the server. Then, as a user who may use sudo:
sudo mkdir -p /opt/crmso
sudo tar -xzf crmso-<version>.tar.gz -C /opt/crmso
cd /opt/crmso
sudo ./install.sh --domain crm.example.com --email [email protected]Use your own domain and email address (the address only receives certificate expiry notices). The folder name names the Docker project: keep it. The script writes a private .env (database password, application key, a one-time setup token), builds the image on your server, starts the services, creates the databases and waits for the app to answer. This is what a real install printed:
$ sudo ./install.sh --domain crm.example.com --email [email protected] --yes
Starting CRMSO ...
Image crmso-app:local Building
… image download and build steps (44 lines)
Image crmso-app:local Built
… 40 containers, volumes and networks created and started
Running database migrations ...
INFO Preparing database.
Creating migration table ...................................... 49.96ms DONE
INFO Running migrations.
0001_01_01_000000_create_users_table ......................... 154.21ms DONE
… 41 migrations, each DONE
Waiting for the app to answer (up to 120 seconds) ...
Waiting for the TLS certificate (up to 60 seconds) ...
CRMSO is running.
Setup URL: https://crm.example.com/setup
Setup token: 3f9c1e7a52b84d06a1c9e2f4b7d8a650
Open the setup URL and enter the token to finish. The token is also stored in .env
(SELFHOST_SETUP_TOKEN). Keep .env private: it holds your database password.Keep the setup token. It is also stored in .env as SELFHOST_SETUP_TOKEN. Keep .env private: it holds your database password and the key that decrypts stored passwords.
The setup wizard.
Open the setup URL on your domain name (never the IP address) and follow the steps.
Setup token
Paste the token the install script printed. Nobody can open the wizard without it.

Requirements
The wizard checks the server. Fix anything marked missing, then choose Check again.

Licence
Paste your licence key. The install is activated for the address you are using now. Tick "This is a staging copy, not the live site" only for a test copy.

Your company
Company name and profile. International and Europe/London are preselected; choose your own time zone. With International the currency follows the time zone (British Pound for London, Euro for Paris) until you choose one yourself.

First administrator
Your name, email address and a password of at least 12 characters. This person signs in first and manages everyone else.

Outgoing email
Your SMTP details. A test email must reach the administrator before you can continue, or choose Skip for now and set it up later in Settings.

Done
Check the summary, choose Finish setup, then Go to sign in. The setup address then stops existing and the token is of no further use.


After setup.
- System email. Settings, "System email" (owner only): SMTP server, port, encryption, user, password and sender. Until it is saved, password resets, invitations and reminders are only written to the log. Use Send a test email.
- Users. Settings, "Users", "Invite a team member". Invitations go by email, so set up system email first.
- Client portal. Settings, "Client portal", "Enable the client portal". Clients use
https://crm.example.com/portal; no extra domain or certificate is needed. - AI assistant (optional). Settings, "AI assistant": choose a provider and enter your own API key. The provider bills you directly.
- Sign-in with Google (optional). Add
GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRETandGOOGLE_REDIRECT_URI(https://crm.example.com/authentication/google/callback) to.env, thensudo docker compose up -d. - S3-compatible storage (optional). Files live in
storage/and are in every backup. To use a bucket instead, decide before you use the install and follow section 3 ofINSTALL.mdin the archive (compose.override.yml).

Licence and locking.
A network failure, a timeout or an error from the licence server never locks the install: it confirms its licence at least every 7 days, and each success keeps it unlocked for 30 days. Only a clear refusal (revoked, not recognised, wrong domain) locks it at once. When locked, the staff side pauses; sign-in, the licence screen and Download data export always work, and the client portal, reminders, automations, worker and scheduler keep running.
| Message on the licence screen | What to do |
|---|---|
| No licence has been activated on this install | Paste your key on the licence screen and choose Activate. |
| This licence key is not recognised | Copy the key again from your purchase email or your buyer page. |
| This licence key is for a different product | Use the key you received for CRMSO. |
| This licence is activated for a different domain | Open the install on its licensed domain, or move the licence to the new domain on your buyer page. |
| This install is no longer activated on the licence server | It was freed on the buyer page: activate it again with your key. |
| The licence file on this server was issued to a different install | The licence files were copied from another server: activate this install with your key. |
| This version was released after your update period ended | Renew on your buyer page, then update; or reinstall the last release your licence covers. |
| This install has not been able to confirm its licence for 30 days | Check the server's internet access, DNS and clock, then choose Check licence now. |
| This install cannot read its licence files | Run the scripts as root and do not start containers as another user (see Troubleshooting). |
| All installs on this licence are in use (when activating) | Free an install you no longer use on your buyer page, then activate again. |
| The licence server could not use this request (when activating) | Open the page on your domain name, not the server's IP address, and activate again. |
Moving to another domain: point the new name at the server, set APP_DOMAIN and APP_URL in .env, run sudo docker compose up -d, change the domain on your buyer page, then choose Check licence now. Agency licences can set the product name, logo and colour on the licence screen.
Updates.
cd /opt/crmso
sudo ./update.shThe script asks the licence server for the newest release your licence allows, downloads and checks it, makes a backup, swaps the code, rebuilds, migrates and checks that the app answers. If anything fails, or your SSH session drops, the previous version is put back. Releases built before your "Updates until" date keep working for ever.
Backups and restoring.
sudo ./backup.sh
sudo ./restore.sh backups/<UTC date and time>A backup holds both databases, storage/, the licence state and a copy of .env; the newest 14 are kept. Each backup holds secrets. Run it nightly from root's crontab and copy backups/ off the server:
0 3 * * * cd /opt/crmso && ./backup.shNew server: install there first, copy backups/ over, run restore.sh (it puts the backup's application key back in .env by itself), then activate the licence again. Free the old server on your buyer page if all installs are in use.
Troubleshooting.
- The site does not open or the certificate is refused. Check that DNS points at this server, that ports 80 and 443 are open at the server and at your host, and read
sudo docker compose logs caddy. - Email does not arrive. Use Send a test email and read the message; try another port (some hosts block 25, 465 or 587); check
sudo docker compose logs worker. - "This install cannot read its licence files." Run the scripts with
sudo; never start a shell in a container as root to run application commands. - Logs:
sudo docker compose logs app,… worker,… scheduler, andsudo docker compose ps. - After changing
.env:sudo docker compose up -d.
Support.
Your buyer page holds your key, your activations, your downloads and the way to reach Sophario Ltd. Send a short description of the problem and the output of sudo docker compose logs --tail=100 app (remove anything private first).
You can also write to [email protected] or call +44 7537 131614.