{"id":8595,"date":"2024-06-15T08:21:02","date_gmt":"2024-06-15T08:21:02","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=8595"},"modified":"2024-08-05T07:05:35","modified_gmt":"2024-08-05T07:05:35","slug":"guide-to-installing-multiple-odoo-instances-on-one-machine","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/guide-to-installing-multiple-odoo-instances-on-one-machine\/","title":{"rendered":"Guide to Installing Multiple Odoo Instances on One Machine"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 2,518<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>Installing multiple Odoo instances on the same machine allows you to run separate instances of Odoo, each with its own databases and configurations. This setup is useful for development, testing, or running multiple versions of Odoo for different purposes. Here\u2019s a step-by-step guide to install and configure multiple Odoo instances on Ubuntu:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<p>Before proceeding, ensure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Ubuntu server or desktop machine with sufficient resources (CPU, RAM, disk space).<\/li>\n\n\n\n<li>PostgreSQL installed and configured.<\/li>\n\n\n\n<li>Basic understanding of Linux commands and system administration.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step-by-Step Guide<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. Install Odoo<\/h4>\n\n\n\n<p>If you haven\u2019t already installed Odoo, follow these steps to install it. You can install one instance using the default package manager, and additional instances manually:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install Odoo using Apt (First Instance)<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code has-vivid-red-color has-text-color has-link-color wp-elements-5ba655c789774ff1fdf2e08b6804427b\"><code>   <code>sudo apt-get update\n   sudo apt-get install odoo<\/code><\/code><\/pre>\n\n\n\n<p>This installs the latest stable version of Odoo from the official Ubuntu repositories.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Create Odoo Configuration File for the First Instance<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a configuration file for the first Odoo instance. Typically, the configuration file is located at <code>\/etc\/odoo\/odoo.conf<\/code>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-vivid-red-color has-text-color has-link-color wp-elements-179a5abe55302bee0f33d063ce3e89db\"><code>   <code>sudo nano \/etc\/odoo\/odoo.conf<\/code><\/code><\/pre>\n\n\n\n<p>Example configuration for the first instance (<code>odoo.conf<\/code>):<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-red-color has-text-color has-link-color wp-elements-357004dd33eea321fc705ee333f63645\"><code>   <code>&#91;options]\n   ; This is the default database name\n   db_name = odoo_db1\n   ; PostgreSQL connection parameters\n   db_host = localhost\n   db_port = 5432\n   db_user = odoo\n   db_password = your_postgresql_password\n   ; Set the listening port for this Odoo instance\n   http_port = 8069<\/code><\/code><\/pre>\n\n\n\n<p>Adjust <code>db_name<\/code>, <code>db_user<\/code>, <code>db_password<\/code>, and <code>http_port<\/code> as per your requirements.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Start the First Odoo Instance<\/strong> Once configured, start the first Odoo instance:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code has-vivid-red-color has-text-color has-link-color wp-elements-51fa5ebbb77e4d9961432af6c248c7ca\"><code>   <code>sudo systemctl start odoo<\/code><\/code><\/pre>\n\n\n\n<p>Verify that the first instance is running correctly by accessing <code>http:\/\/localhost:8069<\/code> in your web browser.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Install Additional Odoo Instances<\/h4>\n\n\n\n<p>For additional Odoo instances, you\u2019ll need to manually install Odoo from source and configure each instance:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Download Odoo Source Code<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code has-vivid-red-color has-text-color has-link-color wp-elements-d0140a2f46e96d9696b3d986deb7c7c0\"><code>   <code>git clone https:\/\/www.github.com\/odoo\/odoo --depth 1 --branch 14.0 \/opt\/odoo14<\/code><\/code><\/pre>\n\n\n\n<p>Replace <code>14.0<\/code> with the version you want to install, and <code>\/opt\/odoo14<\/code> with your preferred installation directory.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Install Dependencies<\/strong> <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">```bash<br>sudo apt-get install python3-pip python3-dev build-essential libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev \\<br>sudo apt-get install python3-pip python3-dev build-essential libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev<br>pip3 install libsass vobject qrcode num2words wheel cryptography<br>in<\/mark><\/code><br><\/li>\n<\/ol>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>Install multiple Odoo instances on one machine, which enables you to run separate instances of Odoo with their own databases and configurations. You can follow all of these steps to install Odoo instances with their multiple setups. By regularly monitoring and maintaining each Odoo instance, you can ensure optimal performance across multiple projects on a single machine, making it an effective approach for <a href=\"https:\/\/www.infinitivehost.com\/managed-odoo-server-solutions\"><strong><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">best Odoo server solutions<\/mark><\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2,518 Views Installing multiple Odoo instances on the same machine allows you to run separate instances of Odoo, each with its own databases and configurations. This setup is useful for development, testing, or running multiple versions of Odoo for different purposes. Here\u2019s a step-by-step guide to install and configure multiple Odoo instances on Ubuntu: Prerequisites [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[203],"tags":[],"class_list":["post-8595","post","type-post","status-publish","format-standard","hentry","category-odoo"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=8595"}],"version-history":[{"count":2,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8595\/revisions"}],"predecessor-version":[{"id":8809,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8595\/revisions\/8809"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=8595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=8595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}