1. Install Odoo
- Here are presented two alternative methods of Odos's installation - from the GitHib project and from the repository.
1.A Install Odoo from the repository. This should be the preferable way.
Install the dependencies, add the repository and its key, update the system and install the package:
sudo apt update && sudo apt install postgresql
wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add -
echo "deb http://nightly.odoo.com/11.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list
sudo apt update && sudo apt upgrade && sudo apt install odoo
With this configuration you can control the service by the commands:
sudo systemctl status odoo.service
sudo systemctl restart odoo.service
sudo systemctl start odoo.service
sudo systemctl stop odoo.service
The main configuration file is: /etc/odoo/odoo.conf.
1.B Install Odoo from the GitHib project. If you've followed 1.A skip this step - go to 2.
This section uses Yenthe V.G's installation scrip. I found this approach in the article: Install Odoo 11 on Ubuntu 16.04....
Download odoo_install.sh:
wget https://raw.githubusercontent.com/Yenthe666/InstallScript/11.0/odoo_install.sh
Edit odoo_install.sh and modify the parameters, under the section #fixed parameters:
OE_USER will be the username for the system user, the default one is odoo.
By default the script will create user's home directory /<odoo user>. You could leave the following values as default, but I would prefer /home/<odoo user>:
OE_HOME="/home/$OE_USER"
OE_HOME_EXT="$OE_HOME/${OE_USER}-server"
INSTALL_WKHTMLTOPDF set to False if you do not want to install Wkhtmltopdf, if you want to install it you should set it to True.
OE_PORT is the port where Odoo should run on, for example 8069.
OE_VERSION is the Odoo version to install, for example 11.0 for Odoo V11.
IS_ENTERPRISE will install the Enterprise version on top of 11.0 if you set it to True, set it to False if you want the community version of Odoo 11.
OE_SUPERADMIN is the master password for this Odoo installation. The default pass is admin.
Make odoo_install.sh executable and execute it as root:
chmod +x odoo_install.sh && sudo ./odoo_install.sh
You could control the application by the commands:
sudo /etc/init.d/odoo-server restart
sudo /etc/init.d/odoo-server start
sudo /etc/init.d/odoo-server stop
The configuration file is: /etc/odoo-server.conf.

3. Reverse proxy
In order to access your Odoo application only by using your domain name, without the port number in the URL, or through HTTPS, you need to set up a reverse proxy: