How to install Odoo 12 on Debian 9

In this tutorial, we will show you how to install Odoo 12 on Debian 9. Additionally, we will show you how to install and configure the Apache web server as a reverse proxy for your Odoo application. Odoo is a web-based open source business software including a number of business applications for Sales, Project and Warehouse management, CRM, Website/eCommerce, billing, accounting, inventory and thousands of more additional modules developed by the community. For the purposes of this tutorial, we will be using the Odoo 12 Community Edition. Installing Odoo 12 on Debian 9 should take less than 10 minutes to complete. Let’s get started with this tutorial.

Prerequisites

Debian 9 VPS

PostgreSQL server

Python version 3.5

Apache web server

SSH access with root privileges

1. Connect to your server

To connect to your server via SSH as user root, use the following command:

To access Odoo, you can now open your browser and navigate to http://your-server-IP:8069

5. Setting up Apache as a Reverse Proxy

If you have a valid domain name and you would like to use it in order to access your Odoo application instead of typing the IP address and the port number in the URL, we will now show you how to set up a reverse proxy using the Apache web server.

We will start by installing the Apache web server. Apache is considered as the most widely used web server software. It is fast, secure, reliable and can be easily customized depending on your needs.

To install Apache on your server, run the following command:

apt-get install apache2

After the installation is complete, you should enable Apache to start automatically upon system boot. You can do that with the following command:

systemctl enable apache2

To verify that Apache is running, open your web browser and enter your server IP address, (e.g. http://111.222.333.444). If Apache is successfully installed you should see a message saying “It works!”.

Next, we will need to enable some additional proxy modules for Apache. You can do this with the following commands:

a2enmod proxy
a2enmod proxy_http

Once this is done, open a new configuration file for your domain with the following command:

6. Restart Apache Web Server

Remember to replace your my_domain.com’ with your actual domain name. Save the file, close it and restart Apache for the changes to take effect:

service apache2 restart

That’s it. If you followed all the instructions properly you can now access your Odoo 12 using your domain name at http://my_domain.com

Install Odoo 12 on Debian 9

Initially, you would be asked to create a new database using the master password we have set up earlier. Once the database is created, you will get redirected to the admin panel from where you can log in as the admin user. After you have successfully logged in, you can start using your Odoo 12 and configure it to your needs, install additional modules etc.

Of course, you don’t have to know how to install Odoo 12 on Debian 9 if you have an Odoo VPS Hosting with us. You can simply ask our administrators to install Odoo 12 on Debian 9 for you. They’re available 24/7 and will be able to help you with the installation of Odoo 12 on Debian 9.

PS. If you enjoy reading this blog post on How to Install Odoo 12 on Debian 9, feel free to share it on social networks using the shortcuts below, or simply leave a comment.