How to install Odoo on Linux Ubuntu 18,04

Simple seven steps tutorial

In this tutorial, you will learn how to install Odoo in just several steps. It does not matter what version you want to install - 9, 10, 11 or Odoo 12, this solution will work right. This was tested on Linux Ubuntu 18,04 as well as 16.04. Odoo 11 and older is recommended to install on Ubuntu 16.04.

1. Step 1 - update your OS:

sudo apt-get update
sudo apt upgrade

2. Step 2 - download the script.

To make the things easier you can simply download the script made by Yenthe Van Ginneken. If you want to change the port or other parameters simply edit the script (by sudo nano odoo_install.sh)

wget https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh

Make the script executable:

chmod +x odoo_install.sh

3. Step 3 - Run the script:

./odoo_install.sh

4. Step 4 - Configure Odoo

If you made change the name of your Odoo in the script the config file will also have a different than below:

sudo nano etc/odoo-server.conf

5. Step 5 -  Restart Odoo

If you changed the config you should restart Odoo to apply the changes:

sudo /etc/init.d/odoo-server restart

You can also use the command service odoo-server restart

Please note that if you have edited installation script and changed the name of the odoo you should use your custom name to restart. For example:

service YourOdooName restart

6. Step 6 - Access Odoo

http://serverIP:8069

Please note for the local server it would be 0.0.0.0:8069, also if you have changed the port number remember to use it while running the Odoo. The next step would be connecting a domain to work with Odoo. For this please read the post "Configuring Nginx for Odoo" or "Configuring Apache for Odoo".