How To Install Odoo on CentOS 8

Install Odoo on CentOS 8

In this tutorial we will show you how to install Odoo on CentOS 8. For those of you who didn’t know, Odoo is one of the most popular and most powerful Open Source ERP business software based on the Python programming language.  It is an web based fully featured application, and comes with Open Source CRM, Point of Sales, Human Resource Management, Point of Sales, Billing and Accounting, Event Management, Email Marketing, Order Tracking etc. This application is helpful to maintain the ERP in any business.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Odoo on a CentOS 8 server.

Install Odoo on CentOS 8

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Dependencies.

Install Python 3, Git, and all the libraries and tools required to build Odoo from source:

Step 3. Create an Odoo User.

We will create a new system user and group that we need to run the Odoo service. The home directory we will define in the /opt/odoo13 directory:

Step 4. Installing PostgreSQL database.

PostgreSQL is available in the default repositories. Now, Install PostgreSQL packages using following command:

Once the installation is complete, the PostgreSQL installation will not be enabled for automatic start or have the database initialized automatically. To make your database installation complete, you need to perform the following steps:

Start the PostgreSQL service and enable it to start on boot:

You can verify installation using below command:

Step 5. Installing Wkhtmltopdf.

Odoo requires the wkhtmltopdf package, which is an open-source tool that converts the HTML format to PDF so that Odoo can print PDF reports:

Step 6. Installing Odoo on CentOS 8.

First, start by cloning the Odoo source code from the Odoo GitHub repository:

Next, create a new Python virtual environment for the Odoo installation:

Once the virtual environment is created, we can activate it with this next command:

Then, install the required Python modules:

Once the installation is complete, deactivate the environment:

We will create a new directory for the custom modules and change its ownership to the ‘odoo’ user:

The next step is to create a configuration file for the new Odoo instance:

Step 7. Create a systemd Unit File.

We will create a service unit file so that we can run Odoo as a service, open your text editor and create a file named odoo13.service inside the /etc/systemd/system/ directory:

Add the following content:

Once the file is saved and closed, we will reload the daemon:

Step 8. Configure Firewall for Odoo.

Modify the firewall rules to allow visitors to access Odoo using PostgreSQL’s default communicating port 8069:

Step 9. Accessing Odoo.

Odoo will be available on HTTP port 8069 by default. Open your favorite browser and navigate to http://yourdomain.com:8069 or http://<your_server_IP_address>:8069.

Install Odoo on CentOS 8

Congratulation’s! You have successfully installed Odoo. Thanks for using this tutorial for installing Odoo open source ERP and CRM on your CentOS 8 system. For additional help or useful information, we recommend you to check the official Odoo website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!