In this tutorial we will show you how to install Odoo 10 on Ubuntu 16.04. We will also show you how install and configure the Nginx 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. There are two Odoo editions currently available, the Community edition which is free and Enterprise edition. For the purposes of this tutorial we will be using the Odoo 10 Community edition.
Requirements
- Ubuntu 16.04 VPS
- PostgreSQL server
- Python version 2.7
- Nginx web server
- SSH access with root privileges
Table of Contents
1. Connect to your server
Before we begin,you need to connect to your server via SSH. Also, if this is your first time loging to your VPS make sure you check out our First Steps After Getting an Ubuntu VPS tutorial.
To connect to your server via SSH as user root, use the following command:
and replace “IP_ADDRESS” and “PORT_NUMBER” with your actual server IP address and SSH port number.
Once logged in, make sure that your server is up-to-date by running the following commands:
2. Install PostgreSQL server
We will be using PostgreSQL as a database server for our Odoo application. To install PostgreSQL on your server, run the following command:
After the isntallation is complete, make sure to enable the PostgreSQL server to start automatically upon server reboot with:
3 . Install Odoo
Update the list of available packages with:
And run the following command to install Odoo, along with Python and all required Python modules:
After the installation is complete, you can run the following command to check the status of your Odoo service:
You should get the following output:
You will also need to set a new master password. To do this you need to edit the odoo configuration file with:
And change admin_password field with a strong password. You can also generate one using the command line.
After you made the changes, restart your Odoo with:
To access Odoo, you can now open your browser and navigate to http://your-server-IP:8069.
4. Setting up 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 how set up a reverse proxy using the Nginx web server.
Let’s start with the Nginx web server installation. To install Nginx on your server run the following command:
To enable the Nginx web server to start automatically upon server reboot, execute the following command
Next, we need to create a new Nginx server block for our domain name. Let’s say our domain is called “domain.com” (you can replace this with your actual domain name). Run the following command:
and enter the following content and save the file:
To enable the virtual server block we have just created, run the following command:
Restart the Nginx web server:
That’s it. If you followed all the instructions properly you can now access your Odoo 10 using your domain name at http://domain.com.
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 an admin user. After you have successfully logged in, you can start using your Odoo 10 and configure it to your needs, install additional modules etc.
Of course, you don’t have to know how to install Odoo 10 on Ubuntu 16.04 with Nginx as a Reverse Proxy if you have a Odoo VPS Hosting with us. You can simply ask our administrators to install Odoo 10 on Ubuntu 16.04 for you. They’re available 24/7, and will be able to help you with the installation of Odoo 10 on Ubuntu 16.04. For more updates, you can also read our post on How to Install Odoo 11 on Ubuntu 16.04 with Nginx as a Reverse Proxy.
PS. If you enjoy reading this blog post on How to Install Odoo 10 on Ubuntu 16.04 with Nginx as a Reverse Proxy, feel free to share it on social networks using the shortcuts below, or simply leave a comment.