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.

Introduction

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 http://www.odoo.com.
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 https://github.com/odoo/odoo.git

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

To install version 8.0:
 git clone https://github.com/odoo/odoo.git --branch 8.0

To install version 7.0:
 git clone https://github.com/odoo/odoo.git --branch 7.0

Step 5: Install GData.

cd ~/
wget http://gdata-python-client.googlecode.com/files/gdata-2.0.18.tar.gz
tar zxvf gdata-2.0.18.tar.gz
cd gdata-2.0.18/
python setup.py install

Step 6: Odoo Server Installation.

cd /home/odoo/
python setup.py install

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

nano /etc/odoo-server.conf

[options] ;Thisisthe password that allows database operations:
;admin_passwd=admin
;db_host=False
;db_port=False
;db_user=postgres
;db_password=admin
[options] ## Server startup config - Common options
# Admin password for creating, restoring and backing up databases<
admin_passwd=admin
# specify additional addons paths (separated by commas)
addons_path=/home/odoo/addons
## XML-RPC / HTTP - XML-RPC Configuration
# disable the XML-RPC protocol
xmlrpc=True
# Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces.
xmlrpc_interface=0.0.0.0
# specify the TCP port for the XML-RPC protocol
xmlrpc_port=8069
# Enable correct behavior when behind a reverse proxy
proxy_mode=True
## XML-RPC / HTTPS - XML-RPC Secure Configuration
# disable the XML-RPC Secure protocol
xmlrpcs=True
# Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.
xmlrpcs_interface=
# specify the TCP port for the XML-RPC Secure protocol
xmlrpcs_port=8071
# specify the certificate file for the SSL connection
secure_cert_file=server.cert
# specify the private key file for the SSL connection
secure_pkey_file=server.pkey
## NET-RPC - NET-RPC Configuration
# enable the NETRPC protocol
netrpc=False
# specify the TCP IP address for the NETRPC protocol
netrpc_interface=127.0.0.1
# specify the TCP port for the NETRPC protocol
netrpc_port=8070
## WEB - Web interface Configuration
# Filter listed database REGEXP
dbfilter=.*
## Static HTTP - Static HTTP service
# enable static HTTP service for serving plain HTML files
static_http_enable=False
# specify the directory containing your static HTML files (e.g '/var/www/')
static_http_document_root=None
# specify the URL root prefix where you want web browsers to access your static HTML files (e.g '/')
static_http_url_prefix=None
## Testing Group - Testing Configuration
# Launch a YML test file.
test_file=False
# If set, will save sample of all reports in this directory.
test_report_directory=False
# Enable YAML and unit tests.
test_disable=False
# Commit database changes performed by YAML or XML tests.
test_commit=False
## Logging Group - Logging Configuration
# file where the server log will be stored (default = None)
logfile=/var/log/odoo/odoo-server.log
# do not rotate the logfile
logrotate=True
# Send the log to the syslog server
syslog=False
# 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
log_level=info

 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:

http://IP_or_domain:8069

 

 

Menu