How to self-host an online store (without being a developer)
· The ShopNex team
“Self-hosted” sounds like something only developers do. For a store it mostly means this: the software runs on a server you rent, and you pay the server provider instead of a platform. Here is what that involves in practice.
What self-hosting gives you
- No platform fee and no per-sale cut from the software itself. You still pay your payment processor.
- Ownership of your data. Customers, orders and products live in your database, and you can export them whenever you like.
- Freedom to change things. You can read the code, and nothing can be switched off by someone else’s policy change.
What it asks of you
Honesty matters here: you take on operations. Someone must keep the server updated, take backups and notice when something is down. If that sounds like too much, a hosted platform is a reasonable choice. For many small merchants it is less work than it sounds, because a good installer sets most of it up for you.
Step 1: Rent a server
Any VPS from a mainstream provider works. Choose a recent Ubuntu or Debian image, and pick a location near most of your customers. A small server with a couple of gigabytes of memory is enough to start. The self-hosting guide lists one-click options for several providers.
Step 2: Point a domain at it
Buy a domain and create an A record pointing to the server’s IP address. You want HTTPS from day one, and certificates are issued per domain.
Step 3: Run the installer
Connect to the server and run the one-line install command from the install guide. It installs Docker if needed, starts ShopNex and its database, and prints the address of the setup wizard. If you prefer to see every piece, the Docker Compose file is published at the same site and the self-hosting docs cover each option.
Step 4: Finish setup in the browser
The setup wizard creates your owner account and your shop. After that, everything is a setting in the admin:
- Payment providers, including Stripe.
- Email sending over SMTP, so order notifications reach customers.
- File storage on local disk or an S3-compatible bucket.
- Shipping rates and your theme.
You never edit a config file for these.
Step 5: Back up from the first day
A store without backups is a gamble. The two things to protect are the database and the uploaded files. Schedule a daily database dump, copy it off the server, and test restoring it once. If files go to an S3-compatible bucket, the provider’s own durability covers them.
Step 6: Keep it updated
Run updates regularly. Read the release notes for anything that needs attention, back up first, then pull the new version. Keep the server’s operating system patched too.
A launch checklist
- HTTPS works and
wwwredirects to your main domain. - A test order goes through with a real payment method, then is refunded.
- The order confirmation email arrives, and not in spam.
- A backup exists off the server and has been restored once.
- You know who gets the alert if the store goes down.
When hosted is the better choice
If you do not want responsibility for uptime at all, or your store is a side project you will not look at for months, pay for hosting. If you want control and lower long-term costs, self-hosting is a good fit. For a comparison of options, read how to choose an open-source ecommerce platform.
Frequently asked questions
What does it cost to self-host an online store?
The software can be free, so the main cost is the server, which for a small store is typically a small monthly VPS fee, plus a domain and payment processing fees. Email sending and file storage can stay on the same server or use inexpensive external services.
Do I need to know how to code to self-host a store?
No. With ShopNex you run one installer on a fresh server, then do all the configuration in the browser through a setup wizard and the admin.
Is self-hosting secure enough for payments?
Card details never touch your server when you use a hosted payment page such as Stripe Checkout, which keeps your PCI scope small. You are still responsible for updates, backups and HTTPS on the server itself.
What happens if my server goes down?
Your store is unavailable until it is back, which is the main trade-off of self-hosting. Automated backups and a monitoring alert shorten the recovery time considerably.