Install Odoo/OpenERP from Github on Ubuntu 14.04

 This is the third article in Odoo Installation series. In previous articles you can find How to Install Odoo/OpenERP 7.0 on Ubuntu 12.04 w/ Apache2 + mod_wsgi and How to run Odoo/OpenERP 7 using OpenERP server daemon. This article will help you to install Odoo 7, 8, trunk versions on Ubuntu 14.04.


Odoo (former OpenERP) is a collection of web based open source business apps. With Odoo you can create your own website, online shop, blog. It includes CRM, Project management tools, billing, accounting and more. You can get a free Odoo account at
If you are a developer and want to add more features to Odoo or if you need more control over the system this article is for you! Below you will find detailed, step-by-step guide that will help you to install Odoo on your own server.

We can install Odoo/OpenERP on your VPS or dedicated server just for $30!
Order Odoo/OpenERP installation service or Order VPS with Odoo/OpenERP pre-installed.



Odoo Installation

Step 1: Setup your Ubuntu 14.04 server.

Update server packages.

 apt-get update

Step 2: Install Git, PostgreSQL, Python and required packages.

 apt-get install git postgresql python-dateutil python-feedparser python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2  python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil wget python-unittest2 python-mock python-jinja2 python-dev libpq-dev poppler-utils python-pdftools antiword  python-pypdf python-setuptools python-pybabel

Step 3: Setup a PostgreSQL user for Odoo.

 su - postgres -c "createuser -s odoo" 2> /dev/null || true

Step 4: Download Odoo.

In this step, you can select required Odoo version (latest version, version 8.0, version 7.0).

cd /home

To install latest version (not recommended):
git clone

Note: odoo constantly updated, it can really miss some dependencies.

To install version 8.0:
 git clone --branch 8.0

To install version 7.0:
 git clone --branch 7.0

Step 5: Install GData.

cd ~/
tar zxvf gdata-2.0.18.tar.gz
cd gdata-2.0.18/
python install

Step 6: Odoo Server Installation.

cd /home/odoo/
python install

 Create file odoo-server.conf in the directiry /etc.

nano /etc/odoo-server.conf

[options] ;Thisisthe password that allows database operations:
[options] ## Server startup config - Common options
# Admin password for creating, restoring and backing up databases<
# specify additional addons paths (separated by commas)
## XML-RPC / HTTP - XML-RPC Configuration
# disable the XML-RPC protocol
# Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces.
# specify the TCP port for the XML-RPC protocol
# Enable correct behavior when behind a reverse proxy
## XML-RPC / HTTPS - XML-RPC Secure Configuration
# disable the XML-RPC Secure protocol
# Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.
# specify the TCP port for the XML-RPC Secure protocol
# specify the certificate file for the SSL connection
# specify the private key file for the SSL connection
## NET-RPC - NET-RPC Configuration
# enable the NETRPC protocol
# specify the TCP IP address for the NETRPC protocol
# specify the TCP port for the NETRPC protocol
## WEB - Web interface Configuration
# Filter listed database REGEXP
## Static HTTP - Static HTTP service
# enable static HTTP service for serving plain HTML files
# specify the directory containing your static HTML files (e.g '/var/www/')
# specify the URL root prefix where you want web browsers to access your static HTML files (e.g '/')
## Testing Group - Testing Configuration
# Launch a YML test file.
# If set, will save sample of all reports in this directory.
# Enable YAML and unit tests.
# Commit database changes performed by YAML or XML tests.
## Logging Group - Logging Configuration
# file where the server log will be stored (default = None)
# do not rotate the logfile
# Send the log to the syslog server
# setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "openerp.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO")
log_handler=["[':INFO']"] # specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset
#log_level = debug

 Open ports in the ubuntu firewall.
ufw allow 80
ufw allow 8072
ufw allow 8069

 Create user for Odoo.
useradd -s /bin/sh odoo
mkdir /var/log/odoo
chown -R odoo /home/odoo /var/log/odoo

Step 7: Testing the server.

 To start the Odoo server type:

su odoo -c '/home/odoo/openerp-server -c /etc/odoo-server.conf'

 You should be able to view the logfile and see that the server has started.

tail -f /var/log/odoo/odoo-server.log

If the log file looks OK point your web browser at the domain or IP address of your OpenERP server (or localhost if you are on the same machine) and use port 8069. The URL will look something like this: