In this article, we are going to show you how to install Odoo 11 on an Ubuntu 16.04 VPS and configure Apache as a reverse proxy for Odoo 11 so that you can access your Odoo application across the domain without typing the Odoo port in the URL. Odoo is one of the most popular and most powerful open source business software based on the Python programming language. In this release, much of the focus is on intuitiveness, usefulness, and better accessibility to teams for end users and developers. With version 11, we can see a new website bar where various keyboard shortcuts are included that make navigation through Odoo faster and easier than ever. In addition to this, there is a new global search option within the page itself.
If you follow these instructions properly, the installation should take no more than 20 minutes to install Odoo 11 on an Ubuntu 16.04 VPS.
Before starting, you need to connect to the server via SSH. Also, if this is your first time logging into your VPS, make sure you go through the first steps in setting up your Ubuntu VPS.
Once you have successfully logged in, we need to make sure all our packages are up to date by running the following commands:
apt-get update apt-get upgrade
You can also enable automatic updates on your VPS.
In order to install Odoo 11 on our system, we will use a script.
Change to the directory where you want to download the script. For example, to go to the “home” directory, you would type:
Then use the following command to load the script:
You can also change the script if you want:
For example, you can change the version you would like to install, the location where it will be installed, whether the enterprise version is installed or not, and most importantly, you can change the administrator password to which one you would like to use.
After you make the necessary changes, make sure you save them.
In order to run the script, we need to make the file executable with the following command:
chmod +x odoo_install.sh
Now we can run the script and wait while Odoo 11 is installed.
Congratulations! Odoo 11 is now installed on your Ubuntu 16.04 VPS.
If you did not set an administrator password before installation, you can do it now, edit the Odoo 11 configuration file. You can open it with the following command:
and change the admin_password field to a strong password. You can also create it from the command line.
admin_passwd = StrongPassword
Restart Odoo for the changes to take effect:
To access Odoo, open your browser and navigate to https: // your-server-IP: 8069. First, you will be prompted to create a new database.
After the database is created, you are taken to the admin panel, from which you can log in as an administrator.
After successful registration, you can start using Odoo 11 and customize it to fit your needs, install additional modules, etc.
Setting up a reverse proxy
To access the Odoo application using only your domain name, without the port number in the URL, we need to configure Apache as a reverse proxy.
First, 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 the domain with the following command:
And enter the following:
<VirtualHost *:80> ServerName your_domain.ru ServerAlias www.your_domain.ru ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://your_domain.ru:8069/ ProxyPassReverse / http://your_domain.ru:8069/ <Location /> Order allow,deny Allow from all </Location> </VirtualHost>
Enable the “your_domain.conf” configuration in Apache with:
ln -s /etc/apache2/sites-available/your_domain.conf /etc/apache2/sites-enabled/your_domain.conf
Remember to replace “vash_domen.ru” with your domain name. Save the file, close it and restart Apache for the changes to take effect:
service apache2 restart
That’s all. If you followed all the instructions correctly, then you can access Odoo 11 using your domain name.
Also, if you want to improve the performance of your Odoo, you can also check our tutorial on how to speed up Odoo.