Our Work

Step By Step Guide to Install Odoo8 (former OpenERP) on Ubuntu 12.04 and 14.04 LTS

Posted 1 year, 8 months and 18 days ago

Beginning

Odoo (former OpenERP) is a collection of web based open source business apps. With Odoo you manage below operations:
  • Can boost your sales like CRM, POS, Sales, Subscriptions
  • Run your operations better like Projects, Inventory, Purchase, Manufacturing
  • Improve your marketing like Email Marketing, Events, Survey, Adwards, Live Chat
  • Get control of your finances like Invoicing, Accounting 
  • Manage all HR activities

Odoo Installation Process

Step 1: Update your server packages using below command
apt-get update
Step2:  Install Python and required dependency packages
 
apt-get install python-cups python-dateutil python-decorator python-docutils python-feedparser \
python-gdata python-geoip 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-unicodecsv python-unittest2 python-vatnumber python-vobject \
python-werkzeug python-xlwt python-yaml wkhtmltopdf
 
Step-3: Install and configure the database server, PostgreSQL
apt-get install postgresql postgresql-contrib
 
Create Configure the Odoo user on postgres server:
 
Switch to postgres user and create a new database user called as odoo. Odoo user has access rights to connect to PostgreSQL and to create and drop databases. 
Also set password of odoo user, it required on your later activities.
su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
Enter password for new role: ********
Enter it again: ********
 
Note: Chose your password your self.
Use exit command to exit from postgres user
 
Step-4 Create Odoo user that will own and run the application
adduser --system --home=/opt/odoo --group odoo
Note: This is a system user, it isn’t supposed to be a normal or regular type user with a login or any thing. If any time you want to run Odoo server from server terminal , Log in with below command and start Odoo server.
su - odoo -s /bin/bash
 
Step-5  Install the Odoo server
Switch to the Odoo user:
su - odoo -s /bin/bash
 
a. Download Odoo bundle from centralized or official repositories
 
 
 
OR
 
Run below command to download from Ubuntu terminal
 
 
b. Extract downloaded bundle
tar -zxvf odoo_8.0.latest.tar.gz
 C. Rename the directory structure properly.
 
exit from the odoo user
 
6. Configuring the OpenERP application
 
a. change proper owner group and permission
From user go to /opt directory
cd /opt
chown odoo:odoo odoo/ -R
chown 755 odoo/ -R

b. Create Odoo Log File
mkdir /var/log/openerp
chown -R odoo:root /var/log/openerp
 
7. Edit Odoo configuration file
cp /opt/openerp/odoo-8.0/debian/openerp-server.conf /etc/openerp-server.conf
chown odoo:odoo /etc/openerp-server.conf
vim  /etc/openerp-server.conf
#Copy and paste below content in config file , write correct addons paths
 
[options]
;This is the password that allows database operations:
admin_passwd = PASSWORD
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/openerp/odoo-8.0/addons
;Log settings
logfile = /var/log/odoo/odoo-server.log
log_level = error
 
8. Setup Odoo service file
 
cp /opt/openerp/odoo-8.0/openerp-server /etc/init.d/openerp-server
chmod 755 /etc/init.d/odoo-server
chown root: /etc/init.d/odoo-server
 
9. Now Start Odoo Server
 
cd /opt/openerp/odoo
./openerp-server
Push Odoo server process in terminal background
./openerp-server &
 
10. Go to web browser to access Odoo 8
 
 
11. Stop/Kill Odoo server 
netstat -ntlp | grep python-cups
kill -9 

Related Posts