Erpnext Logo

how to add a second erpnext instance on ubuntu

Assuming you have followed my previous guide on installing erpnext on a fresh ubuntu instance (, we will show you how to install a second site on the same server (DNS based multitenancy).

The process is quite simple:

  • Start by configuring your DNS. Point to your server’s IP address.
  • SSH to your VPS and login as erpnext user (we assume you have followed to create erpnext user)
  • su erpnext

    Change to home directory where frappe-bench is located.

  • cd ~/frappe-bench
  • Enable DNS based multinenancy.
bench config dns_multitenant on
  • Setup the new site.
  • bench new-site
  • Install erpnext app on new site.
  • bench --site install-app erpnext
  • Install erpnext app on new site.
  • bench setup nginx
  • Reloads nginx to apply the new configuration.
  • sudo service nginx reload

Point your browser to Make sure that still works 🙂 You are done. 



Leave a Reply

Your email address will not be published. Required fields are marked *