Installing automatically
Learn how to set up Light Store using the provided automatic convinience script.
Overview
Light Store comes bundled with a convinience install.sh script for installing the store automatically.
At the time of the release, it only officially supports Ubuntu (but can theoretically be used on any Linux distribution that uses the Debian-derived apt-get utility.)
The script offers a Docker setup with optional Caddy to route your domain and provide SSL certificates.
Prerequisites
To install this store, you need:
- a Ubuntu server (VPS, dedicated server, etc.),
- a domain name (or subdomain) with access to DNS.
Clean Server
The script is designed for fresh Ubuntu installations. The script will attempt its best to not cause conflicts,
but no guarantees are made. If you already have a webserver on ports :80/:443, choose not to install Caddy
during the setup.
Installation
Using an SFTP client upload the store .zip downloaded from BuiltByBit to any directory of your choice. We recommend /var/www/store, but it can also be the home directory of your user (~).
To connect via SFTP, you can use WinSCP or FileZilla.
Enter the SSH shell (by running ssh <your server's ip> in your system's terminal) and navigate to the directory where you uploaded the store - for example: cd /var/www/store.
Unzip the store: unzip "Light Store v1.12.2.zip" (your file name may differ depending on the version.)
Run the script with the following command: bash install.sh.
You might be prompted to enter your sudo password (for things like Docker or Caddy installation). If so, provide it.
Follow the instructions on the screen.
Webserver included
After following the steps, a reverse proxy is automatically set up for you with automatic SSL for HTTPS. You do not have to manually link the domain as shown in the dedicated webserver guides.