Introduction
Odoo is a flexible ERP/CRM suite that brings together several business modules (sales, invoicing, inventory, human resources, etc.). An on-premise installation on a Linux server (Ubuntu/Debian) lets you keep control of your data, optimize performance and configure Odoo to fit your business needs.
In this guide, we explain step by step how to install Odoo 19.x on a Hostarts VPS, while following the best practices of the official documentation. (Odoo)
Why choose a Hostarts VPS for Odoo
Installing Odoo requires full administrator access, a local database and the ability to install system services.
A VPS (Virtual Private Server) is therefore the best choice to guarantee:
- dedicated hardware resources (CPU, RAM, SSD storage);
- root access for all the necessary configurations;
- local network performance suited to Algerian users.
At Hostarts, servers are 100% hosted in Algeria, with responsive local support and flexible backup options. This makes installing, maintaining and putting Odoo into production particularly stable and reliable.
Step 1: Update the VPS
Connect to your Hostarts VPS via SSH, then run:
sudo apt update && sudo apt upgrade -y
This command updates the system packages before the dependencies are installed.
Step 2: Install PostgreSQL
Odoo requires PostgreSQL as its database system.
Install it on the VPS:
sudo apt install postgresql -y
This step is essential before installing Odoo. (Odoo)
Step 3: Add the official Odoo repository
The official documentation provides a repository for the version 19 Community edition.
Run the following commands to add it:
wget -q -O - https://nightly.odoo.com/odoo.key | sudo gpg --dearmor -o /usr/share/keyrings/odoo-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/odoo-archive-keyring.gpg] https://nightly.odoo.com/19.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list sudo apt update
Then install the Odoo package:
sudo apt install odoo -y
The Debian package includes all the dependencies needed to run Odoo 19, including integration with PostgreSQL. (Odoo)
Step 4: Install wkhtmltopdf (optional but recommended)
To generate PDF files (invoices, reports) correctly, Odoo requires a manual installation of wkhtmltopdf 0.12.6.
- Download the version compatible with Ubuntu
- Install it using
dpkgorapt install <fichier_deb>
The documentation specifies that this component is not installed via pip and must be installed separately to ensure that headers and footers display correctly in PDF documents. (Odoo)
Step 5: Configure Odoo on the VPS
The Odoo package automatically creates a system service.
The configuration file is usually located at:
/etc/odoo/odoo.conf
Check or modify the following settings:
[options] admin_passwd = <mot_de_passe_maitre> db_host = False db_port = False db_user = odoo db_password =
- admin_passwd: master password for managing databases through the Odoo interface
- db_user / db_password: PostgreSQL credentials, to be adjusted if necessary
Step 6: Start and check the service
The Odoo service is normally enabled automatically after installation:
sudo systemctl enable odoo sudo systemctl start odoo sudo systemctl status odoo
If you have trouble starting it, we recommend checking the system logs with
journalctl -u odoo
and verifying the network configuration or the database.
Step 7: Access Odoo from a browser
Once the server is up and running, go to the following URL:
http://<IP_VPS>:8069
Replace
<IP_VPS>
with the IP address of your Hostarts VPS.
The Odoo database creation page then appears, letting you define:
- the database name;
- the administrator password;
- the modules to install by default.
Best practices for a production installation
To ensure a stable and secure installation, it is recommended to:
- configure a firewall to allow only the necessary ports (SSH, 8069, possibly HTTPS);
- install an SSL certificate (Let's Encrypt) through a reverse proxy such as Nginx;
- disable SSH password authentication and favor SSH key access;
- set up regular backups of the Odoo database and the filestore.
Why a Hostarts VPS is ideal for Odoo
Choosing a Hostarts VPS to host Odoo gives you:
- 100% hosting in Algeria, improving latency and user experience;
- a high-performance infrastructure based on fast SSD storage with backup and snapshot options;
- full root access, essential for advanced configurations.
Conclusion
Installing Odoo 19 on a VPS is a high-performance solution for professional use.
By relying on the official packages recommended by Odoo, you can have a robust instance that is kept up to date automatically through the Linux package manager.
With a Hostarts VPS, local performance, quality support and freedom of configuration come together to effectively support ERP projects.



