How to install odoo 13 on ubuntu 18.04 server


how to install Odoo 13 On Ubuntu 18.04 server

how to install odoo 13 on ubuntu 18.04 server with source code
Odoo 13 Installation on ubuntu 18.04 server

To Install Odoo 13 on ubuntu 18.04 server follow these steps :

First Open Terminal on your ubuntu 18.04 server Start :

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt install python3-pip

install postgresql database :-

  • sudo apt-get install postgresql postgresql-contrib

install odoo 13 community version :-

  • git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 --single-branch
  • cd odoo

install requirements.txt :- which is a file has all python packages needed for odoo to work probably :-

  • pip3 install -r requirements.txt
  • sudo apt install python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev

install npm :-

  • sudo apt-get install -y npm
  • sudo ln -s /usr/bin/nodejs /usr/bin/node
  • sudo npm install -g less
  • sudo npm install -g rtlcss

Now Create User On Postgresql Database (With Name odoo as you see below)

  • sudo su - postgres
    createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
  • It will ask you to put password for the user
  • psql
  • Alter user odoo with superuser;
  • \q
  • exit
  • cd /tmp

install wkhtmltopdf :- which is open source command line tools to render HTML to PDF.

  • sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb 
  • sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
  • sudo apt install -f
  • sudo mkdir /var/log/odoo
  • sudo cp /root/odoo/debian/odoo.conf /etc/odoo.conf
  • sudo nano /etc/odoo.conf

how to install odoo-13 on ubuntu 18.04 odoo.conf

Add these information as you see in this image

db_port default port for postgresql

db_user database user as we create is in database

db_password put your database user password

addons_path put your odoo/addons path

  • sudo nano /etc/systemd/system/odoo.service

how to install odoo-13 on ubuntu 18.04 odoo.service

  • sudo systemctl start odoo.service
  • sudo systemctl enable odoo.service

Now check the status of your odoo

  • sudo systemctl status odoo.service
  • sudo tail -f /var/log/odoo/odoo.log

Open your browser and put http://YourServerIP:8069/

All Done !! Congratulations.

© 2020 PyOdoo.