Get Quote
Discover how Hostinger helps businesses achieve the highest cost savings on hosting and domain services without compromising performance. From ultra-fast cloud servers to affordable domain pricing, Hostinger offers an ideal balance of reliability, speed, and budget efficiency—perfect for startups and growing companies looking to optimize their online presence.
How to Install Odoo 19 on Ubuntu 24.04 | Step-by-Step Guide | Farishta Tech

How to Install Odoo 19 on Ubuntu 24.04

A complete step-by-step installation guide for developers and production servers

Introduction

Odoo 19 is the latest powerful open-source ERP platform offering advanced business applications including accounting, CRM, HR, POS, inventory, manufacturing, and eCommerce. Ubuntu 24.04 LTS provides a stable and secure foundation for running Odoo in production.

This guide by Farishta Tech explains how to install Odoo 19 on Ubuntu 24.04 from scratch, covering system preparation, dependencies, PostgreSQL, Python environment, wkhtmltopdf, system service setup, and security best practices.

System Requirements

  • Ubuntu 24.04 LTS (64-bit)
  • Minimum 4 GB RAM (8 GB recommended)
  • PostgreSQL 14+
  • Python 3.10+
  • Root or sudo access

Step 1: Update the System

Always start by updating your server packages:

sudo apt update && sudo apt upgrade -y

Step 2: Create Odoo System User

For security reasons, Odoo should run under a dedicated system user:

sudo adduser --system --home=/opt/odoo --group odoo

Step 3: Install PostgreSQL

Odoo requires PostgreSQL as its database backend:

sudo apt install postgresql postgresql-contrib -y
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser odoo
exit
      

Step 4: Install Required Dependencies

sudo apt install git python3 python3-pip python3-venv build-essential \
wget python3-dev libxslt-dev libzip-dev libldap2-dev libsasl2-dev \
libjpeg-dev libpq-dev libxml2-dev libssl-dev libffi-dev -y
      

Step 5: Install wkhtmltopdf

wkhtmltopdf is required for PDF reports in Odoo:

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.jammy_amd64.deb
sudo apt install ./wkhtmltox_0.12.6-1.jammy_amd64.deb -y
      

Step 6: Download Odoo 19 Source Code

sudo su - odoo
git clone https://www.github.com/odoo/odoo --depth 1 --branch 19.0
exit
      

Step 7: Create Python Virtual Environment

sudo su - odoo
python3 -m venv odoo-venv
source odoo-venv/bin/activate
pip install wheel
pip install -r odoo/requirements.txt
deactivate
exit
      

Step 8: Create Odoo Configuration File

sudo nano /etc/odoo19.conf
      
[options]
admin_passwd = StrongAdminPassword
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/odoo/odoo/addons
logfile = /var/log/odoo19.log
xmlrpc_port = 8069
      

Step 9: Configure Permissions

sudo chown odoo: /etc/odoo19.conf
sudo chmod 640 /etc/odoo19.conf
sudo touch /var/log/odoo19.log
sudo chown odoo: /var/log/odoo19.log
      

Step 10: Create Systemd Service

sudo nano /etc/systemd/system/odoo19.service
      
[Unit]
Description=Odoo 19
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo19
PermissionsStartOnly=true
User=odoo
Group=odoo
ExecStart=/opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo19.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target
      

Step 11: Start and Enable Odoo

sudo systemctl daemon-reload
sudo systemctl enable odoo19
sudo systemctl start odoo19
sudo systemctl status odoo19
      

Step 12: Access Odoo 19

Open your browser and visit:

http://your_server_ip:8069
Security Tip: Always use Nginx as a reverse proxy, enable SSL with Let's Encrypt, change default ports, and restrict database access for production environments.

Conclusion

Installing Odoo 19 on Ubuntu 24.04 ensures a secure, scalable, and high-performance ERP environment. By following this guide, you can deploy Odoo for development, testing, or production use.

For professional Odoo implementation, customization, hosting, and long-term support, Farishta Tech provides expert services to help your business grow efficiently.

Scroll to Top