Install OpenEstate on your own server
A native install on Ubuntu: one systemd service, your own PostgreSQL and Redis, and nginx in front. No Docker, no hosted dependency.
You need to be comfortable in a terminal, not to write code. Plan on 5 to 15 minutes, most of it the first build.
- Release
- v0.9.1
- Time
- 5 to 15 minutes
- Server
- Ubuntu, 2 vCPU, 4 GB RAM
- Licence
- AGPL-3.0
Requirements
Before you start
- An Ubuntu server with root or sudo access, x86_64 (amd64). ARM is not officially supported.
- At least 2 vCPU, 4 GB RAM and 40 GB disk. For a real company, 4 vCPU, 8 GB RAM and 80 GB or more, because documents and receipts add up.
- Ports 80 and 443 open if you use a domain with HTTPS.
- A domain name pointed at the server, for anything beyond a trial.
- Optional: an SMTP account and an SMS provider, for later.
What has been tested
Ubuntu 25.10 with PostgreSQL 17 is the platform verified end to end on a real server: install, login, upgrade, rollback, backup, restore and uninstall. Ubuntu 22.04 and 24.04 LTS with PostgreSQL 16 are the documented targets but have not been independently re-verified. Other distributions are untested.
You install PostgreSQL, Redis and nginx yourself, and the installer checks for them but never installs them. They are your infrastructure, with your own backups and patching.
Step 1
Install the prerequisites
Run these in order. A fresh Ubuntu image has none of them, not even git or curl. If you skip one, the installer lists everything missing in a single pass.
sudo apt-get update
# Base tools first: the Node.js step pipes through curl, and git fetches the source.
sudo apt-get install -y git curl openssl build-essential python3
# Node.js 20 (NodeSource; Ubuntu's own repository ships an older version)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
# PostgreSQL: use the line that matches your Ubuntu release
sudo apt-get install -y postgresql-16 postgresql-client-16 # Ubuntu 22.04 / 24.04
# sudo apt-get install -y postgresql postgresql-client # Ubuntu 25.04 and later
sudo systemctl enable --now postgresql
# Redis
sudo apt-get install -y redis-server
sudo systemctl enable --now redis-server
# nginx
sudo apt-get install -y nginxStep 2
Run the installer
Clone the source and run the installer from inside it. Leave out --server-name for an IP-only install.
git clone https://github.com/stemAGH/openestate.git /opt/openestate-src
cd /opt/openestate-src/deploy/native
sudo ./install-native.sh --server-name crm.yourcompany.comIt generates your secrets (database passwords, signing keys, encryption keys), builds the application into a versioned release, runs migrations, starts the service and configures nginx. When it finishes it prints a random initial admin password. That password is shown once. Copy it now.
- Creates the openestate system user and the standard directories.
- Writes /etc/openestate/openestate.env with random secrets. An existing file is left alone.
- Creates the database and the two Postgres roles the app uses.
- Builds a new release under /opt/openestate/releases and links it as current.
- Runs migrations and seeds the Indian tax defaults, standard roles and sample charge types.
- Installs and starts the openestate-api service and the nginx site.
Step 3
First login and setup
Open your server name or IP in a browser and sign in as admin@demo-realty.com with the printed password.
Change the password
You are forced to, immediately. It is not optional.
Turn on two-factor authentication
Profile, Security, Enable 2FA. Scan the QR code with an authenticator app and keep the recovery codes in a password manager.
Enter your company details
Legal name, GSTIN, GST state code, RERA details, logo and brand colour. A missing GST state code stops bookings, so set it first.
Review the seeded masters
Check GST rates and TDS thresholds against current law before your first real transaction. They do not update themselves.
Create roles and users
Add your sales managers, executives and accounts team, using the seeded roles or your own.
Do a dry run
Create a project, book a test unit, record a receipt and download the PDF before inviting any customer. Then delete the test data.
Step 4
Add HTTPS and a firewall
The installer does not set up TLS. For a real deployment, point your domain at the server, then add a certificate and close everything except SSH, HTTP and HTTPS.
Certificate with certbot
sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d crm.yourcompany.comFirewall
sudo ufw allow 22,80,443/tcp
sudo ufw enableFrom v0.8.4 the API listens on 127.0.0.1:3000, so only nginx on the same machine can reach it. If your reverse proxy runs on another machine, set API_HOST in the environment file and firewall port 3000 so only that proxy can connect.
Running it
Upgrade, back up and recover
Upgrade to a new version
The script takes a backup first, builds the new release next to the running one, runs the database migrations, switches over and checks health. If the health check fails it rolls the code back automatically. It does not undo database migrations, which only move forward.
Always pass a release tag such as the one below, never a branch name like master. A tag has no stale local copy, so the script cannot quietly install old code. Read the release notes for the version before you upgrade, and make sure the server clock is synchronised (timedatectl shows "System clock synchronized: yes").
cd /opt/openestate-src/deploy/native
sudo ./upgrade-native.sh --ref v0.9.1Back up and restore
One command bundles the database, the uploaded files and the environment file into a timestamped folder under /var/backups/openestate. The environment file is not optional: the encryption keys for PAN numbers, two-factor secrets and plugin secrets live only there, and encrypted data cannot be read without them. Copy bundles off the server and treat them as secrets.
Restore drops and recreates the database, so it asks you to confirm. Practise a restore on a second server before you need it.
cd /opt/openestate-src/deploy/native
sudo ./backup-native.sh
# Disaster recovery (destructive, asks for confirmation)
sudo ./restore-native.sh --force /var/backups/openestate/<backup-folder>Recover a lost admin password or 2FA
This needs shell access to the server, by design: nobody can reset your password remotely. It prints a new random password once. The script keeps two-factor authentication on unless you add --clear-2fa.
cd /opt/openestate-src/deploy/native
sudo ./reset-admin-password.sh --email admin@demo-realty.com
# Also clear two-factor authentication:
sudo ./reset-admin-password.sh --email admin@demo-realty.com --clear-2faUninstall
Neither form touches PostgreSQL, Redis or the data in them. Take a final backup first if you might want the data again.
cd /opt/openestate-src/deploy/native
sudo ./uninstall.sh # stops the service, removes the nginx site, keeps your data
sudo ./uninstall.sh --purge # also deletes /opt/openestate, /etc/openestate, /var/log/openestate and /var/lib/openestateEveryday commands
systemctl status openestate-api # is it running?
systemctl restart openestate-api # after a config change
journalctl -u openestate-api -f # follow the logs liveTroubleshooting
When something does not work
- The installer stops at a prerequisite check
- A required package is missing or the wrong version. The error lists everything missing in one pass, with a ready-to-paste command for your Ubuntu version.
- systemctl status openestate-api shows "failed"
- Usually a bad value in /etc/openestate/openestate.env, or PostgreSQL or Redis is not reachable. Run journalctl -u openestate-api -n 100: the startup error names the exact variable.
- nginx returns 502 on /api/
- The API is not listening on 127.0.0.1:3000. Check the service status, and that PORT in the environment file matches the nginx site config.
- nginx returns 404 under /portal/
- The portal build folder is missing, or the site config is older than the last build. Re-run install-native.sh or upgrade-native.sh.
- The build runs out of memory
- The server is below the 4 GB minimum or under load. Build on a bigger machine, or add swap temporarily.
- You cannot sign in after a password reset
- The browser holds a stale session cookie. Clear cookies for the domain or use a private window.
- Customers and brokers get no SMS or email
- Notifications are only written to the log in this release (journalctl -u openestate-api). Everything else works. Sending real messages needs a provider to be built and wired in.
- An upgrade fails during a migration
- The previous release stays running. Restore the backup taken at the start if you suspect the migration, then open an issue with the error output.
Get help
Need a hand installing it?
Describe your server and what you are trying to do. We reply with next steps.
- Full guide on GitHub (opens in a new tab)
- Ask in the public issue tracker (opens in a new tab)
- Release notes and changelog (opens in a new tab)
- Report a vulnerability privately (opens in a new tab)
Checked against the OpenEstate repository on 9 November 2026. The repository is the source of truth if this page has fallen behind.
YOUR FIRST STEP
Tell us what you need.
A short brief helps us discuss the right scope. Include your goals, any existing website or software, and the problem you want to solve.
- 01 Share your requirements
- 02 Discuss fit and feasibility
- 03 Review a written proposal
