0% found this document useful (0 votes)
12 views

Odoo_18_Installation_Guide_Ubuntu

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. Key steps include verifying Python installation, installing essential dependencies, setting up PostgreSQL, creating users, and configuring Odoo. Finally, it instructs users on how to access Odoo via a web browser.

Uploaded by

mburunjoroge0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Odoo_18_Installation_Guide_Ubuntu

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. Key steps include verifying Python installation, installing essential dependencies, setting up PostgreSQL, creating users, and configuring Odoo. Finally, it instructs users on how to access Odoo via a web browser.

Uploaded by

mburunjoroge0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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 libsas12-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