How To Install Odoo on Debian 9 Stretch

Install Odoo on Debian 9 Stretch

In this tutorial, we will show you how to install Odoo on your Debian 9 Stretch. For those of you who didn’t know, Odoo is one of the most popular and most powerful Open Source ERP business software based on the Python programming language. It is a web-based fully-featured application and comes with Open Source CRM, Point of Sales, Human Resource Management, Point of Sales, Billing and Accounting, Event Management, Email Marketing, Order Tracking, etc. This application is helpful to maintain ERP in any business.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of Odoo on an Ubuntu Debian 9 (Stretch) server.

Install Odoo on Debian 9 Stretch

Step 1. Before we install any software, it’s important to make sure your system is up to date by running the following apt-get commands in the terminal:

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing the PostgreSQL server.

Install the Postgres package from Debian’s default repositories:

apt-get install postgresql

After the installation is complete, make sure to enable the PostgreSQL server to start automatically upon server reboot with:

systemctl enable postgresql
systemctl start postgresql

Step 3. Install Odoo on Debian 9 Stretch.

In the first step, add the Odoo repository to the server. To do this, run the following commands:

wget -O - | apt-key add -
echo "deb ./" >> /etc/apt/sources.list.d/odoo.list

Next, install Odoo using the apt-get package manager:

apt install odoo

After the installation completes, you can check the status of the Odoo service:

systemctl status odoo

Then, edit Odoo’s configuration file and set the master admin password:

nano /etc/odoo/odoo.conf

Uncomment the ‘admin_passwd’ line, and set a password as shown below:


Restart the Odoo instance for the changes to take effect:

systemctl restart odoo

Step 4. Accessing Odoo.

Odoo will be available on HTTP port 8069 by default. Open your favorite browser and navigate to or http://server-ip-address:8069.

Install Odoo on Debian 9 Stretch

Congratulations! You have successfully installed Odoo. Thanks for using this tutorial for installing Odoo on Debian 9 (Stretch) system. For additional help or useful information, we recommend you check the official Odoo website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button