{"id":9227,"date":"2024-09-27T06:46:51","date_gmt":"2024-09-27T06:46:51","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=9227"},"modified":"2024-09-27T07:11:00","modified_gmt":"2024-09-27T07:11:00","slug":"run-odoo-8-and-odoo-9-together-easy-setup-guide","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/run-odoo-8-and-odoo-9-together-easy-setup-guide\/","title":{"rendered":"Run Odoo 8 and Odoo 9 Together: Easy Setup Guide"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 2,081<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p class=\"wp-block-paragraph\">To run Odoo 8 and Odoo 9 on the same server, you&#8217;ll need to set up both versions to coexist without conflicts. Here&#8217;s a step-by-step guide to do that:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Install Dependencies for Both Odoo Versions<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Odoo 8 and Odoo 9 require different Python dependencies. You need to install them separately to avoid version conflicts.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For <strong>Odoo 8<\/strong>, you\u2019ll need Python 2.7.<\/li>\n\n\n\n<li>For <strong>Odoo 9<\/strong>, you\u2019ll need Python 2.7 as well, but the library versions might differ. To install the required dependencies for both versions, you can use the following commands:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>   <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">sudo apt-get install python-dev python-pip build-essential libxml2-dev libxslt1-dev libssl-dev libffi-dev\n   sudo apt-get install python-virtualenv<\/mark><\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Create Virtual Environments for Each Version<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create separate Python virtual environments for Odoo 8 and Odoo 9. This isolates the dependencies for each version.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For <strong>Odoo 8<\/strong>: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">virtualenv -p \/usr\/bin\/python2.7 ~\/odoo8-venv source ~\/odoo8-venv\/bin\/activate pip install -r odoo8\/requirements.txt deactivate<\/mark><\/code><\/li>\n\n\n\n<li>For <strong>Odoo 9<\/strong>:<br><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">bash virtualenv -p \/usr\/bin\/python2.7 ~\/odoo9-venv source ~\/odoo9-venv\/bin\/activate pip install -r odoo9\/requirements.txt deactivate<\/mark><\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Install and Configure PostgreSQL<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Odoo requires PostgreSQL to manage its databases. Install PostgreSQL if it\u2019s not already installed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">sudo apt-get install postgresql<\/mark><\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create two users and two databases for each Odoo version:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For <strong>Odoo 8<\/strong>: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">sudo su - postgres createuser --createdb --username postgres --no-createrole --no-superuser --no-password odoo8 createdb -O odoo8 odoo8_db exit<\/mark><\/code><\/li>\n\n\n\n<li>For <strong>Odoo 9<\/strong>:<br><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">bash sudo su - postgres createuser --createdb --username postgres --no-createrole --no-superuser --no-password odoo9 createdb -O odoo9 odoo9_db exit<\/mark><\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>Configure Separate Odoo Configuration Files<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create separate configuration files for each Odoo version in <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">\/etc\/<\/mark><\/code>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For <strong>Odoo 8<\/strong>: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">sudo nano \/etc\/odoo8.conf<\/mark><\/code> Example configuration for Odoo 8: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">[options] addons_path = \/path\/to\/odoo8\/addons db_host = False db_port = False db_user = odoo8 db_password = False xmlrpc_port = 8068 logfile = \/var\/log\/odoo\/odoo8.log<\/mark><\/code><\/li>\n\n\n\n<li>For <strong>Odoo 9<\/strong>: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">sudo nano \/etc\/odoo9.conf<\/mark><\/code> Example configuration for Odoo 9: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">[options] addons_path = \/path\/to\/odoo9\/addons db_host = False db_port = False db_user = odoo9 db_password = False xmlrpc_port = 8069 logfile = \/var\/log\/odoo\/odoo9.log<\/mark><\/code> Make sure each version runs on a <strong>different port<\/strong> (like 8068 for Odoo 8 and 8069 for Odoo 9).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>Start Odoo Services<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For <strong>Odoo 8<\/strong>, start the service by running the following command: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">~\/odoo8-venv\/bin\/python \/path\/to\/odoo8\/odoo.py --config=\/etc\/odoo8.conf<\/mark><\/code><\/li>\n\n\n\n<li>For <strong>Odoo 9<\/strong>, start the service similarly: <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">~\/odoo9-venv\/bin\/python \/path\/to\/odoo9\/odoo.py --config=\/etc\/odoo9.conf<\/mark><\/code> If you want both services to run in the background as daemons, you can create systemd service files for each version.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>Access Odoo 8 and Odoo 9<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Odoo 8<\/strong> will be accessible at: <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">http:\/\/your-server-ip:8068<\/mark><\/code><\/li>\n\n\n\n<li><strong>Odoo 9<\/strong> will be accessible at: <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">http:\/\/your-server-ip:8069<\/mark><\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">7. <strong>Use Different Databases for Each Version<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Be sure to use different databases for Odoo 8 and Odoo 9 to avoid conflicts. You can specify the database in the Odoo interface when logging in, or you can set the <code><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">dbfilter<\/mark><\/code> option in the configuration files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following these steps, you can successfully run Odoo 8 and Odoo 9 side by side on the same server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Conclusion<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To easily run both Odoo 8 as well as Odoo 9 on the similar server, you just simply want to configure both versions to exist without any issue. Here above is a complete step-by-step guide to simply do this with the help of <a href=\"https:\/\/www.infinitivehost.com\/managed-odoo-server-solutions\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\"><strong>managed Odoo server solutions<\/strong><\/mark><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2,081 Views To run Odoo 8 and Odoo 9 on the same server, you&#8217;ll need to set up both versions to coexist without conflicts. Here&#8217;s a step-by-step guide to do that: 1. Install Dependencies for Both Odoo Versions Odoo 8 and Odoo 9 require different Python dependencies. You need to install them separately to avoid [&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-9227","post","type-post","status-publish","format-standard","hentry","category-odoo"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/9227","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=9227"}],"version-history":[{"count":2,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/9227\/revisions"}],"predecessor-version":[{"id":9231,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/9227\/revisions\/9231"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=9227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=9227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=9227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}