How To Install Odoo 13 on Ubuntu 18.04

 

 

Odoo 13 is a suite of web based open source business management apps. The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, and more. Odoos fully-integrated, customizable, an open-source suite of business applications intends to serve SMBs but is designed to meet the needs of companies regardless of size and budget. After testing, Odoo 13 is indeed much faster than Odoo 12.

If installing using Vagrant, the forwarding port mapping in Vagrantfile should be something like:

config.vm.network "forwarded_port", guest: 8069, host: 8080

where host can be 80 or anything else you choose. Odoo runs on port 8069 and will map to the host port you choose to access in your browser.

1. Server requirements calculation

To test Odoo 13, an install with 2GB or Ram is sufficient. For more information on calculating the resources needed based on approximate users and the apps you will use, see:
https://www.odoo.com/documentation/13.0/setup/deploy.html#worker-number-calculation

2. Install PostgreSQL server

Install PostgreSQL:

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install postgresql -y

Once installed, start the PostgreSQL server and enable it to start at server boot.

$ sudo systemctl start postgresql
$ sudo systemctl enable postgresql

3. Add repository & install

Run the following commands:

$ sudo wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
$ sudo echo "deb http://nightly.odoo.com/13.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
$ sudo apt-get update && apt-get install odoo

Note: If using Vagrant and you get a Permission denied error when trying to run the commands above, you can run this command first to run as root before running the command above:

$ sudo -i

Run the commands above again and to exit back to the vagrant user:

# exit

Check the status of the Odoo service:

$ sudo systemctl status odoo

Example output:

 odoo.service - Odoo Open Source ERP and CRM
   Loaded: loaded (/lib/systemd/system/odoo.service; enabled; vendor preset: ena
   Active: active (running) since Thu 2020-06-25 11:44:23 UTC; 32s ago
 Main PID: 7734 (odoo)
    Tasks: 4 (limit: 2360)
   CGroup: /system.slice/odoo.service
           └─7734 /usr/bin/python3 /usr/bin/odoo --config /etc/odoo/odoo.conf --

Ctrl+C to exit.

5. Odoo Quickstart

Open your browser and access Odoo at http://your_IP_Address:8069 (or http://localhost:8080 if using Vagrant)

To create a new database, enter a database name. Then enter an email address, password and any other info. Select the checkbox if you would like to install demo data. Then click Create database button. After set, you should now be redirected to Odoo’s admin dashboard where you can install the apps that you need.

6. Optional – Setting up a Reverse Proxy

In order to access your Odoo application only by using your domain name, without the port number in the URL, it is necessary to set up Apache as a reverse proxy. This step is not necessary if you are using a local development server (ex. Vagrant).

To check whether Apache is already installed and running on your server, run this command:

$ dpkg -l apache2

If Apache is not installed, run this command:

$ sudo apt-get install apache2 -y

Enable Apache to start automatically upon server boot:

$ sudo systemctl enable apache2

You can also check the status of your Apache service with the following command:

$ sudo systemctl status apache2

Ctrl+C to exit.

Enable some additional proxy modules for Apache:

$ sudo a2enmod proxy
$ sudo a2enmod proxy_http

Open a new configuration file substituting your_domain for your domain (or if using Vagrant for local dev, open 000-default.conf):

$ sudo nano /etc/apache2/sites-available/your_domain.conf

Copy/paste the following lines, subsitituting your_domain.com with your domain name (or if using Vagrant for local dev, use localhost):

<VirtualHost *:80>
ServerName your_domain.com
ServerAlias www.your_domain.com

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://your_domain.com:8069/
ProxyPassReverse / http://your_domain.com:8069/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>

Save file and exit (Press CTRL + X, press Y and then press ENTER).

Then, to enable the your_domain.conf configuration in Apache (again, substituting your_domain):

ln -s /etc/apache2/sites-available/your_domain.conf /etc/apache2/sites-enabled/your_domain.conf

Restart the Apache web server:

$ sudo systemctl restart apache2

7. Optional – Set Master Admin Password

Edit Odoo’s configuration file and set the master admin password:

$ sudo nano /etc/odoo/odoo.conf

Delete the ; (semi-colon) to uncomment the admin_passwrd line and change the password to something strong.

admin_passwd = STRONG_PASSWORD

Save file and exit (Press CTRL + X, press Y and then press ENTER).

Restart Odoo:

$ sudo systemctl restart odoo

REFERENCES

https://www.odoo.com/documentation/13.0/setup/install.html
https://kenfavors.com/code/how-to-install-odoo-12-on-ubuntu-18-04/


Hosting

This web app has been tested on DigitalOcean. This app can also be installed using other hosts such as Amazon AWS, Google Cloud, Microsoft Azure, Vultr and others.

Minimal Server Requirements

An Odoo installation should use at least 2GB of RAM.

Installation & Maintenance

If you would like to get this app installed, maintained or need training, Contact Me to get current rates.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.