• Welcome to Odoo Professional Consulting Agency

How to Install Odoo 12 in ubuntu 18.04 ?

How to Install Odoo 12 in ubuntu 18.04 ?

 There are several ways to install Odoo depending on the required use case. The easiest and quickest way to install Odoo is by using their official APT repositories. 

 If you want to have more flexibility such as running multiple Odoo versions on a same system then you can either use docker and docker compose or install Odoo in a virtual environment. 

 This guide covers the steps necessary for installing and configuring Odoo for production using Git source and Python virtual environment on an Ubuntu 18.04 system. 

Step 1 :Update Server

sudo add-apt-repository universe

sudo apt-get update

sudo apt-get upgrade -y

Step 2 :Create Odoo User in Ubuntu

 sudo adduser --system --quiet --shell=/bin/bash --home=odoo --gecos 'ODOO' --group odoo

Step 3 :Install PostgreSQL Server

sudo apt-get install postgresql -y

Step 4 :Create odoo user for postgreSQL

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

Step 5 :Install Wkhtmltopdf

sudo wget https://builds.wkhtmltopdf.org/

sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb

sudo apt-get install -f

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin

sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

Step 6:Install Python Dependencies

sudo apt-get install python3 python3-pip python3-suds -y

sudo apt-get install wget git bzr python-pip gdebi-core -y

sudo apt-get install libxml2-dev libxslt1-dev zlib1g-dev -y

sudo apt-get install libsasl2-dev libldap2-dev libssl-dev -y

sudo apt-get install python-pypdf2 python-dateutil python-feedparser 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 python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests python-passlib python-pil -y

Step 7 :Install Python PIP Dependencies

sudo pip3 install pypdf2 Babel passlib Werkzeug decorator python-dateutil pyyaml psycopg2 psutil html2text docutils lxml pillow reportlab ninja2 requests gdata XlsxWriter vobject python-openid pyparsing pydot mock mako Jinja2 ebaysdk feedparser xlwt psycogreen suds-jurko pytz pyusb greenlet xlrd chardet libsass

Step 8 :Install other required packages

sudo apt-get install node-clean-css -y

sudo apt-get install node-less -y

sudo apt-get install python-gevent -y

Step 9 :Create Log directory

sudo mkdir /var/log/odoo sudo chown odoo:odoo /var/log/odoo

Step 10 : Install ODOO

sudo apt-get install git
sudo git clone --depth 1 --branch 12.0 https://www.github.com/odoo/odoo /odoo/odoo-server

Step 11 :Setting permissions on home folder

sudo chown -R odoo:odoo /odoo/*

Step 12 : Create server config file

sudo touch /etc/odoo-server.conf

sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf"

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

sudo chmod 640 /etc/odoo-server.conf

Step 13 :

Now Start Odoo

Go to /odoo/odoo-server ./odoo-bin -c /etc/odoo-server.conf Your odoo instance is up and running. Go to browser and access your odoo at localhost:8069

How to Install Odoo 14 On Ubuntu 18.04 ?

How to Install Odoo 14 On Ubuntu 20.04 LTS ?

There are no comments for now.

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.

Why Choose Odoo ERP Custom Development ?
Exploring the Benefits and Advantages of Odoo ERP Custom Development for Your Business