Odoo Help


how to install odoo9 and odoo 8 on same server in linux 14.04

on 4/8/16, 6:11 AM 1,338 views

I already have a odoo 8 instance in my server.

Now i want to instal odoo9 on the same server

what are the steps i can follow

Is there any proper documentation for this...

 I already have a odoo8 instance ) linux 14.04 .I followd below steps for the installation .So which of the steps i can changed when I install odoo9 on the same server



. sudo apt-get install openssh-server

2. sudo apt-get update

3. sudo apt-get dist-upgrade


4. Create the OpenERP user that will own and run the application

                a. sudo adduser --system --home=/opt/odoo --group odoo

                b. sudo su - odoo -s /bin/bash

                c. exit

5. Install and configure the database server, PostgreSQL

                a. sudo apt-get install postgresql

                b. sudo su - postgres

                c. createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo

                d. exit

6. sudo apt-get install python-dateutil python-decorator python-docutils python-feedparser \

python-gdata python-gevent python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml \

python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-pybabel \

python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests \

python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-werkzeug \

python-xlwt python-yaml wkhtmltopdf


7. Install the Odoo server

                a. sudo apt-get install git

                b. sudo su - odoo -s /bin/bash

                c. git clone https://www.github.com/odoo/odoo --depth 1 --branch 8.0 --single-branch


                Once it’s finished exit from the odoo user: exit.



8. Configuring the OpenERP application

                a. sudo cp /opt/odoo/odoo/debian/openerp-server.conf /etc/odoo-server.conf            

                b. sudo chown odoo: /etc/odoo-server.conf

                c. sudo chmod 640 /etc/odoo-server.conf

                d. sudo nano /etc/odoo-server.conf

                                change addons paths to : addons_path = /usr/lib/python2.7/dist-packages/openerp/addons so that it reads [addons_path = /opt/odoo/addons            ]

                                add this line:- logfile = /var/log/odoo/odoo-server.log

                e. sudo su - odoo -s /bin/bash

                f. /opt/odoo/openerp-server





                Just copy paste (odoo-server) file into /etc/init.d folder


9. Installing the boot script

                a. create odoo-server file in /etc/init.d (sudo nano /etc/odoo-server.conf) and paste shell_command file data, add premission before creating the file

                b. sudo chmod 755 /etc/init.d/odoo-server

                c. sudo chown root: /etc/init.d/odoo-server

                d. sudo mkdir /var/log/odoo

                e. sudo chown odoo:root /var/log/odoo

10. Testing and Running Openerp

                a. sudo /etc/init.d/odoo-server start (starting server)

                b. less /var/log/odoo/odoo-server.log (log file)

                c. sudo /etc/init.d/odoo-server stop (stoping server)

11. Automating OpenERP startup and shutdown

                a. sudo update-rc.d odoo-server defaults


12. ps aux | grep odoo is used for checking server status


Need a help...

On 4/10/16, 3:12 AM

My solution was to make separate postgres users, like odoo8 and odoo9.

sudo su postgres

createuser odoo8 --createdb --login --no-superuser --no-createrole --pwprompt

createuser odoo9 --createdb --login --no-superuser --no-createrole --pwprompt



# Database administrative login by Unix domain socket

local all odoo8 md5

local all odoo9 md5

Save file and restart the postgresql service:

sudo service postgresql restart

Now still within:

sudo su postgres

psql # this will load with default postgres database

# will change pass and save it as md5

postgres=# ALTER USER odoo8 WITH PASSWORD 'password';

postgres=# ALTER USER odoo9 WITH PASSWORD 'password';

We must first edit the odoo config files.

/etc/odoo/config8.conf and /etc/odoo/config9.conf



addons_path = /home/myuser/odoo8/openerp/addons,/home/myuser/enterprise,/home/myuser/odoo8/addons,/home/myuser/myuser_addons

data_dir = /home/myuser/.local/share/Odoo8


data_dir = /home/myuser/.local/share/Odoo9

addons_path = /home/myuser/odoo9/openerp/addons,/home/myuser/enterprise,/home/myuser/odoo9/addons,/home/myuser/myuser_addons

Then we launch odoo8:

odoo.py --xmlrpc-port=8069 --config=/etc/odoo/config8.conf -d odoo8 -w password -r odoo8

In a new terminal tab, we launch odoo9:

odoo.py --xmlrpc-port=8070 --config=/etc/odoo/config9.conf -d odoo9 -w password -r odoo9


xmlrpc-port are different.

Hope this answer is fully step by step guide :).

Thanks Damjan .fo your valuable answer....

on 4/11/16, 12:44 AM
On 4/8/16, 6:25 AM


choose different ports for both of them

in openerp-server.conf file,

add a line

xmlrpc_port = 8070        (a different port  number from odoo 8)

No what are the steps i can follow like installing Postgres etc..

on 4/8/16, 6:29 AM

what are the steps you following?

on 4/8/16, 6:42 AM

install odoo 9 on linux 14.04

on 4/8/16, 6:45 AM

No need to install Postgres, wkhtmltopdf again, also common depending packages if you want to change user, you have to give a different home directory. and some Little changes like this. The main thing you have to do is in may answer

on 4/8/16, 6:50 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/8/16, 6:11 AM
Seen: 1338 times
Last updated: 4/10/16, 3:12 AM