0% found this document useful (0 votes)
265 views2 pages

Odoo 18 Installation Guide

This document provides a step-by-step guide to install Odoo 18 on Ubuntu 24.04 LTS, starting from preliminary steps to running the Odoo server. It includes instructions for verifying Python installation, updating system packages, installing dependencies, setting up PostgreSQL, and configuring Odoo. Finally, it explains how to access Odoo through a web browser after installation.

Uploaded by

korbirayan247
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
265 views2 pages

Odoo 18 Installation Guide

This document provides a step-by-step guide to install Odoo 18 on Ubuntu 24.04 LTS, starting from preliminary steps to running the Odoo server. It includes instructions for verifying Python installation, updating system packages, installing dependencies, setting up PostgreSQL, and configuring Odoo. Finally, it explains how to access Odoo through a web browser after installation.

Uploaded by

korbirayan247
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

How to Install Odoo 18 on Ubuntu 24.

04 LTS

1. Preliminary Steps
Open a terminal and switch to the superuser:
sudo su

2. Verify Python Installation


Ensure Python 3 is installed:
python3 --version

3. Update System Packages


Update your system and upgrade all installed packages:
sudo apt update && sudo apt upgrade -y

4. Install Essential Dependencies


Install required packages for Odoo:
sudo apt install git python3-pip libldap2-dev libpq-dev libsasl2-dev

5. Install PostgreSQL
Install PostgreSQL and its client:
sudo apt install postgresql postgresql-client

6. Create PostgreSQL User for Odoo


Create a PostgreSQL superuser:
su - postgres -c "createuser -s odoo18"

7. Set a Password for the PostgreSQL User


Switch to the postgres user and set a password:
su postgres
ALTER ROLE odoo18 WITH PASSWORD 'odoo18';
Use CTRL + Z to suspend, then type exit twice to return to your user.

8. Create a System User for Odoo


Create a dedicated Odoo user:
sudo useradd -m -d /opt/odoo18 -U -r -s /bin/bash odoo18

9. Navigate to Odoo Directory


Go to the newly created directory:
cd /opt/odoo18

10. Clone the Odoo Repository


Clone the Odoo 18 codebase:
git clone https://www.github.com/odoo/odoo --depth 1 --branch 18.0 --single-branch odoo
11. Install Python Virtual Environment
Install the venv module:
sudo apt install python3-venv

12. Create and Activate the Virtual Environment


Create the virtual environment:
python3 -m venv odoo-venv
Activate it:
source odoo-venv/bin/activate

13. Install Python Dependencies


Install the required Python packages:
pip install -r odoo/requirements.txt

14. Configure Odoo


Go to the configuration directory and create odoo.conf:
cd odoo/debian
nano odoo.conf
Add or modify the following:
[options]
db_user = odoo18
db_password = odoo18
addons_path = /opt/odoo18/odoo/addons

15. Run Odoo


Go back to the Odoo directory and start Odoo:
cd ..
python3 odoo-bin -c /opt/odoo18/odoo/debian/odoo.conf

16. Switch to Odoo User and Start Odoo (If Needed)


Run the server as the Odoo user:
sudo su odoo18
source odoo-venv/bin/activate
cd odoo
python3 odoo-bin -c debian/odoo.conf

Access Odoo
Open your web browser and go to:
http://localhost:8069

You might also like