QUICK INQUIRY !
Quick Contact
[contact-form-7 404 "Not Found"]
Home Odoo 15 Download and Installation on Ubuntu Server

Odoo 15 Download and Installation on Ubuntu Server



How to Install Odoo 15 on Ubuntu Server

Odoo 15 Download and Installation Guide by Globalteckz offers you How you can install Odoo v 15 community or enterprise (On-Premise) on your Ubuntu Server easily. Odoo older version 14 has been replaced with this latest version with new functions and features. This latest version offers you with community (free edition) as well as a license-based (paid) version that provides you with advanced ERP functionalities. We will be discussing what new features have been added in the latest version of the Enterprise Resource Planning software.

By Installing Odoo ERP latest version you can understand what features has been added compared to the older version. This Odoo download and installation guide can help you to make migration and new version implementation decisions in your business. Many SMB’s ensure to keep abreast with latest version of Odoo so that they gain the benefit of using a solution at the optimum level. With the release of Odoo 15 there are many changes in core module functions which we will be discussing in detail with our next blog post.

Odoo 15 Community vs Enterprise editions

Various versions of Odoo available such as Community, Enterprise Edition which further provides you with options to install odoo on your own premises (own server), Odoo.sh & Online to suit small to mid-sized companies’ needs. Odoo Implementation & Odoo Development helps you to enhance your business processes and productivity of your Organisation.

Odoo 15 comes with exciting new features, for a better user experience, and more improvements in performance. Odoo 15 required Python 3.8 and PostgreSQL for the database management system. Let’s get started from the very beginning.

How to Install Odoo 15 on Ubuntu 20.04?

This blog will describe the installation aspects of Odoo 15 in an Ubuntu server 20.04 LTS and will help to understand its process for successful deployment

Pre-Requirements

This instruction assumes that you have Linux skills. Below are the server requirements for Odoo 15 install.

  • Dedicated or VPS server
  • OS: Ubuntu 20.04
  • Open ports http (80), https (443), and ssh (22)
  • Root access
  • Access to DNS panel to manage your domain and assign a domain name
  • It is better to choose a hoster where you can expand your server quickly
  • The server hardware configuration depends on your project

In this tutorial, we will install Odoo 15 on Ubantu with 4 core, 4 GB RAM, and 50 GB SSD. You can install Odoo on Ubuntu,

Note: All of these steps will go through the terminal(Command Line Interface).

Step-1: Login to the Server and Update

Login to the server using ssh:

ssh <username>@<IP address>

eg: ssh root@127.0.0.1

Ensure that system is updated:

sudo apt-get update

sudo apt-get upgrade

Step 2: Secure Server

Ensure the system is secure from ssh attacks, the use of Fail2ban will help to prevent ssh attacks:

sudo apt-get install openssh-server fail2ban

Step 3: Install Python 3 and its Dependencies

Install the required python packages for Odoo:

Install pip3:

sudo apt-get install -y python3-

Then install Packages and libraries:

sudo apt-get install python-dev python3-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev

Make sure that all packages are installed correctly without any errors. After successful installation of Python packages, some web dependencies are also needed to be installed.

sudo apt-get install -y npm

sudo ln -s /usr/bin/nodejs /usr/bin/node

sudo npm install -g less less-plugin-clean-css

sudo apt-get install -y node-less

Step 4: Setup Database Server(PostgreSQL)

Odoo uses PostgreSQL as its database server. Follow the steps to install and setup database server for Odoo:

sudo apt-get install postgresql

In the next step, create a Postgres user to handle the database. The user and given password are needed for the conf file later.

Postgres has its own system user called ‘Postgres to perform the operations. So next command for change user to Postgres:

sudo su - postgres

Next, let’s create a database user for Odoo15. When you enter the following command, it will ask for a password and re-enter it again. Remember this for later use:

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo15

The following command ensures that the user has superuser access rights:

psql

ALTER USER odoo15 WITH SUPERUSER;

Exit from psql and postgres user:

\q

exit

Step 5: System User

Next let’s create a system user to perform Odoo roles and also for security purposes. All the files and directories of Odoo’s access and operations will be limited for this user.

Now let us create a new system user for the Odoo service and further then we will limit the permissions of all Odoo related files and directories for this specific user.

sudo adduser --system --home=/opt/odoo --group odoo

Step 6: Clone Odoo Source from Github Repository

With the Community Edition source code, we can directly clone from Odoo’s GitHub repository. You can add the Enterprise edition add-ons after the installation process is completed.

So first install git to the server:

sudo apt-get install git 

Next, switch system user to ‘odoo’ and the files will be added into the user’s home directory:

sudo su - odoo -s /bin/bash 

The following command will clone the source directory and the operator dot(.) at the end of the command is used to clone the files to the home directory of the current user which is /opt/odoo and is the same home directory mentioned at the time of user creation:

git clone https://www.github.com/odoo/odoo --depth 1 --branch 15.0 --single-branch .

Then exit from the user and continue the installation:

exit

Step 7: Install Required Python Packages

The next step is to install the required packages. All the packages are listed in the requirement.txt file. Therefore, we can easily install these packages with a single command:

sudo pip3 install -r /opt/odoo/requirements.txt

To run Odoo smoothly, all the packages should be installed properly and you should ensure that.

Step 8: Install Wkhtmltopdf

Odoo supports printing reports as PDF files. Wkhtmltopdf helps to generate PDF reports from HTML data format. Moreover, the Qweb template reports are converted to HTML format by the report engine and Wkhtmltopdf will produce the PDF report:

sudo 

https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb

sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb

sudo apt install -f 

Step 9: Setup Conf file

Next, we have to configure the conf file for Odoo which contains certain necessary information such as the addons path, database-related parameters, proxy parameters, and many more.

Therefore, you should create a configuration file inside the /etc directory. There is a sample conf file inside Odoo’s source, in the Debian directory. To copy from Debian to the /etc directory use the following command:

sudo cp /opt/odoo/debian/odoo.conf /etc/odoo.conf

This file contains sample values, and you should edit the file with proper values:

sudo nano /etc/odoo.

Update admin password and db_password from the following sample.

[options]

; This is the password that allows database operations:

admin_passwd = admin

db_host = False

db_port = False

db_user = odoo15

db_password = False

addons_path = /opt/odoo/addons

logfile = /var/log/odoo/odoo.log

The following aspects should be configured before the operations are conducted:

db_user: the database user name.

db_password: provide db user password which is given while creating the db user.

admin_passwd: This is the master password of Odoo which is used to perform database operations in the database manager like create, delete, duplicate, and many more.

db_host: the database host.

db_port:  the database port.

addons_path: provide the path of directories that contain the Odoo addons directories. You can mention multiple directories separated by commas:

Eg: addons_path = /opt/odoo/addons, /opt/odoo/enterprise, /opt/odoo/custom

logfile: the log file path.

Finally, you should set access rights of the conf file for the system user odoo:

sudo chown odoo: /etc/odoo.conf

sudo chmod 640 /etc/odoo.conf

And create a log directory to store the log file of odoo which will help you to find Odoo related issues and also set permissions for the user odoo as we did earlier:

sudo mkdir /var/log/odoo

sudo chown odoo:root /var/log/odoo

Step 10: Odoo service file

Finally, we have to create a service to run Odoo. Let’s create a service file ‘odoo.service’ in /etc/systemd/system:

sudo nano /etc/systemd/system/odoo.service

Add the following content to the newly created service file

[Unit]

Description=Odoo

Documentation=http://www.odoo.com

[Service]

# Ubuntu/Debian convention:

Type=simple

User=odoo

ExecStart=/opt/odoo/odoo-bin -c /etc/odoo.conf

[Install]

WantedBy=default.target

Next set the permissions for the root user to this service file:

sudo chmod 755 /etc/systemd/system/odoo.service

sudo chown root: /etc/systemd/system/odoo.service

Step 11: Test Odoo 15

Now all the steps of installation are completed. Let’s test the Odoo instance with the following command:

sudo systemctl start odoo.service

Then check the status of the service using the following command. And if it depicts as active, the installation of Odoo was successful:

sudo systemctl status odoo.service

Now you can access Odoo by entering the following URL:

“http://<your_domain_or_IP_address>:8069”

This will redirect you to the database creation page if everything is set up correctly.

Step 12: Check Odoo logs

You can also check the logs of Odoo platform that you have set up if you are facing any issues related to the installation or any other reasons with the following command. This command will show you the live logs in the terminal:

sudo tail -f /var/log/odoo/odoo.log

At last, if you want to start the Odoo service automatically after rebooting the server, use the following command:

sudo systemctl enable odoo.service

If you have made any changes in the addons, restart the Odoo service to reflect the updates on your instance using the following command:

sudo systemctl restart odoo.service

For questions on Odoo 15 download | installation or Enterprise pricing and cost that can involve with your business you can contact our sales team on sales@globalteckz.com

To understand about configuring Reverse Proxy using Nginx on your server please check out:

 

How to Configure Odoo with Nginx as Reverse Proxy?

Odoo is one of the most popular business management ERP software in the world. Moreover, having a modular approach to option in the company the platform is packed with multiple useful modules such as Customer Relationship Management (CRM), Point of Sale, Project Management, Inventory Management, Automated Invoicing, Accounting, E-commerce, and much more.

– Initially, in order to access your Odoo application only by using your domain name, and without the port number in the URL, we need to set up Nginx as a reverse proxy.

– Before installing the Nginx web server, make sure that there is no other web server such as Apache installed on the VPS. If the Apache web server is running, stop it using the following command:

systemctl stop apache2

Furthermore, you can remove it using the following command:

apt-get purge apache2*

apt autoremove

As we have stopped and removed other servers from functioning now let’s move on to installing aspects of NGINX

NGINX web server

Nginx is a free and open source web server/software, which can also be used as a reverse proxy, load balancer and HTTP cache.  Additionally, a large fraction of web servers use NGINX.

Now lets under tsnd how to install NGINX in ubuntu or other Debian based Linux distributions

– Install NGINX  on Ubuntu

For installing NGINX on Ubuntu (and other Debian based Linux distributions), run the following command:

sudo apt-get update

sudo apt-get install nginx

– Start NGINX

Start the Nginx service with the use of the following command:

sudo service nginx start

Change the binding interface

– Although this step is optional, it is a good security practice. Moreover, by default Odoo server listens to port 8069 on all interfaces, so if you want to disable the direct access to your Odoo instance,  open the Odoo configuration and add the following two lines of command at the end of the file:

/etc/odoo.conf

xmlrpc_interface = 127.0.0.1netrpc_interface = 127.0.0.1

– Now save the configuration file and restart the Odoo server for the changes to take effect using the following code:

systemctl restart odoo

As the NGINX is installed and the binding interface is changed let’s now move on to configuring it in the next section.

Configure NGINX

– Initially edit the current Nginx server block in the old domain or create a new server block if it is not created yet.

– Now add the following lines of code to configure NGINX:

Cd /etc/nginx/sites-enabled

server {

server_name testing.com 111.111.111.111; //replace ip and server name with your domain and ip

listen 80;

access_log /var/log/nginx/testing-access.log;

error_log /var/log/nginx/testing-error.log;

location /longpolling {

proxy_connect_timeout   3600;

proxy_read_timeout      3600;

proxy_send_timeout      3600;

send_timeout            3600;

proxy_pass http://127.0.0.1:8072;

}

location / {

proxy_connect_timeout   3600;

proxy_read_timeout      3600;

proxy_send_timeout      3600;

send_timeout            3600;

proxy_pass http://127.0.0.1:8069/;

proxy_set_header Host $http_host;

proxy_set_header X-Forwarded-Host $http_host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

gzip on;

gzip_min_length 1000;

}

upstream odoo {

server 127.0.0.1:8069 weight=1 fail_timeout=0;

}

upstream odoo-im {

server 127.0.0.1:8072 weight=1 fail_timeout=0;

}

As the NGINX is configured lets now restart the server for the configuration to be effective.

Restart NGINX

– Restart the Nginx service using the following code for the changes to take effect:

service nginx restart

Following the above-mentioned steps will help you to easily configure the Odoo platform with Nginx as Reverse Proxy

If you have any further question or issues with respect to odoo 15 download and installation you can connect with us over Enquiry form or email us on sales@globalteckz.com

A high level of extra addons Odoo 15 offers you with:

Odoo 15 offers you with various extra features compared to the older version of Odoo which released in prior years. Odoo 15 installation helps you with many benefits which we have covered in the following blog post. Odoo ERP is one of the largest selling ERP software that offers a Paid and Community version to its user. Implementing Odoo ERP software is quick to compare to other software available in the market. Odoo being a web-based ERP helps organizations with powerful module capabilities that one could look into ERP software.

official odoo partners - globalteckz

Globalteckz – Certified Odoo team and Official Odoo Partners

Globalteckz is working with odoo ERP software since 2013 and has contributed more than 100+ apps for various industries. At Globalteckz we offer our clients the best ERP implementation and e-commerce solution. Some of our services for Odoo include Implementation, development, customization, training & Odoo support. Our team experience in delivering excellent projects with extreme level module customizations and integration with 3rd party apps.

We have experience working on older version starting from version 6 till the latest version 15 – Till date we have implemented more than 100+ Odoo projects for our clients across the globe ranging from small to large Odoo implementations handling verticals such as Manufacturing, Trading, e-commerce, medical, and other industry-specific modules development.

Based on our experience with Odoo development we have crafted a  simple 10 steps Process for implementing Odoo ERP at a 100% successful rate.

odoo implementation methodology

We Follow Agile development method preferrable as well as waterfall software development method based on the project criticality to ensure smooth phases are rolled out.

Read more articles related to Odoo ERP Software:

Facebook Comments

Don’t miss these tips!