Blog

Odoo 19 Installation on Ubuntu

odoo_19
Uncategorized

Odoo 19 Installation on Ubuntu

Odoo is one of the most powerful open-source business management platforms available today. With the release of Odoo 19, there are several performance improvements, new features, and enhanced usability.

In this blog, we will explain how to install Odoo 19 on Ubuntu system. From our experience, if you follow step-by-step method, your installation will be successful with less errors and faster setup.

Best Method for Odoo 19 Installation on Ubuntu

If you are a developer, system admin, or just starting with Odoo, follow this installation guide to run Odoo 19 in your environment.

Prerequisites

Make sure your Ubuntu system meets the following requirements before starting the installation:

  • Ubuntu 20.04 or 22.04 (64-bit recommended)
  • Root or sudo user access
  • PostgreSQL 14+
  • Python 3.10+

Step-by-Step Installation Guide

1. Update Ubuntu System

Before starting any installation, make sure your system is updated with latest packages.

sudo apt update && sudo apt upgrade -y

This will help avoid issues later with compatibility or missing libraries.

2. Install Required Packages and Dependencies

Odoo needs some system libraries and Python packages. Run below command:

sudo apt install build-essential wget git python3-pip python3-dev python3-venv python3-wheel \
libfreetype6-dev libxml2-dev libzip-dev libsasl2-dev python3-setuptools libjpeg-dev zlib1g-dev \
libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev
3. Install and Configure PostgreSQL

Odoo works with PostgreSQL as database.

sudo apt install postgresql -y
sudo -u postgres createuser --createdb --no-superuser --no-createrole odoo19

This creates a new PostgreSQL user for Odoo 19.

4. Create Odoo User

To run Odoo safely, create a new system user:

sudo adduser --system --home=/opt/odoo --group --shell=/bin/bash odoo19

This user will own and run Odoo application.

5. Install Wkhtmltopdf

This tool helps to generate PDF reports from Odoo.

sudo apt install wkhtmltopdf

Make sure version is correct (wkhtmltopdf 0.12.6). Wkhtmltopdf is very important for printing reports.

6. Download Odoo 19 Source Code

Switch to Odoo user:

sudo su - odoo19

Clone Odoo 19 from official GitHub:

git clone https://github.com/odoo/odoo --depth 1 --branch 19.0 --single-branch odoo19
7. Create Python Virtual Environment

Inside Odoo folder:

cd /opt/odoo
python3 -m venv venv-19
source venv-19/bin/activate
cd odoo19
pip install wheel
pip install -r requirements.txt

deactivate 

This will install all required Python packages.

8. Create Log Directory
sudo mkdir /var/log/odoo
sudo chown odoo19:odoo19 /var/log/odoo
8. Create Odoo Configuration File

Exit Odoo user and create config file:

sudo nano /etc/odoo19.conf

Paste below configuration:

[options]
admin_passwd = your_admin_password
db_host = False
db_port = False
db_user = odoo19
db_password = False
addons_path = /opt/odoo/odoo19/addons
logfile = /var/log/odoo/odoo19.log

Save and close.

9. Create Service File to Run Odoo

To make Odoo run as service:

sudo nano /etc/systemd/system/odoo19.service

Add below content:

[Unit]
Description=Odoo19
After=network.target

[Service]
Type=simple
User=odoo19
Group=odoo19
WorkingDirectory=/opt/odoo/odoo19
ExecStart=/opt/odoo/venv-19/bin/python3 /opt/odoo/odoo19/odoo-bin -c /etc/odoo19.conf

[Install]
WantedBy=multi-user.target

Now enable and start the service:

sudo systemctl daemon-reload
sudo systemctl start odoo19.service
sudo systemctl enable odoo19.service
10. Access Odoo from Browser

Now, open your browser and go to:

http://<your_server_ip>:8069

You should see the Odoo 19 welcome screen. You can now create your first database and start using Odoo!

To monitor Odoo logs in real-time for debugging or activity tracking, use the following command:

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

Support

Installing Odoo 19 on Ubuntu is not hard if you follow right method. Always check each step and log files if you get error.

If you face any issue in installation or want expert setup, Contact Us

We provide Odoo development, customization, and hosting services for any version including Odoo 19.

Leave your thought here

Your email address will not be published. Required fields are marked *