How to Setup OpenERP (Odoo) on CentOS 7.x

May 4, 2015 | By
| 6 Replies More

Hi everyone, this tutorial is all about how we can setup Odoo (formerly known as OpenERP) on our CentOS 7 Server. Are you thinking to get an awesome ERP (Enterprise Resource Planning) app for your business ?. Then, OpenERP is the best app you are searching as it is a Free and Open Source Software which provides an outstanding features for your business or company.

OpenERP is a free and open source traditional OpenERP (Enterprise Resource Planning) app which includes Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management and many more modules included for a better way to boost the productivity and sales. Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

So, here are some quick and easy steps to get your copy of OpenERP installed on your CentOS machine.

1. Installing PostgreSQL

First of all, we'll want to update the packages installed in our CentOS 7 machine to ensure that the latest packages, patches and security are up to date. To update our sytem, we should run the following command in a shell or terminal.

# yum clean all
# yum update

Now, we'll want to install PostgreSQL Database System as OpenERP uses PostgreSQL for its database system. To install it, we'll need to run the following command.

# yum install postgresql postgresql-server postgresql-libs

Installing postgresql

After it is installed, we'll need to initialize the database with the following command

# postgresql-setup initdb

Intializating postgresql

We'll then set PostgreSQL to start on every boot and start the PostgreSQL Database server.

# systemctl enable postgresql
# systemctl start postgresql

As we haven't set a password for the user "postgresql", we'll want to set it now.

# su - postgres
$ psql
postgres=# \password postgres
postgres=# \q
# exit

setting password postgres

 2. Configuring Odoo Repository

After our Database Server has been installed correctly, we'll want add EPEL (Extra Packages for Enterprise Linux)  to our CentOS server. Odoo (or OpenERP) depends on Python run-time and many other packages that are not included in default standard repository. As such, we'll want to add the Extra Packages for Enterprise Linux (or EPEL) repository support so that Odoo can get the required dependencies. To install, we'll need to run the following command.

# yum install epel-release

Installing EPEL Release

Now, after we install EPEL, we'll now add repository of Odoo (OpenERP) using yum-config-manager.

# yum install yum-utils

# yum-config-manager --add-repo=

Adding OpenERP (Odoo) Repo

3. Installing Odoo 8 (OpenERP)

Finally after adding repository of Odoo 8 (OpenERP) in our CentOS 7 machine. We'll can install Odoo 8 (OpenERP) using the following command.

# yum install -y odoo

The above command will install odoo along with the necessary dependency packages.

Installing odoo or OpenERP

Now, we'll enable automatic startup of Odoo in every boot and will start our Odoo service using the command below.

# systemctl enable odoo
# systemctl start odoo

Starting Odoo

4. Allowing Firewall

As Odoo uses port 8069, we'll need to allow firewall for remote access. We can allow firewall to port 8069 by running the following command.

# firewall-cmd --zone=public --add-port=8069/tcp --permanent
# firewall-cmd --reload

Allowing firewall Port

Note: By default, only connections from localhost are allowed. If we want to allow remote access to PostgreSQL databases, we'll need to add the line shown in the below image to pg_hba.conf configuration file:

# nano /var/lib/pgsql/data/pg_hba.conf

Allowing Remote Access pgsql

5. Web Interface

Finally, as we have successfully installed our latest Odoo 8 (OpenERP) on our CentOS 7 Server, we can now access our Odoo by browsing to http://ip-address:8069 using our favorite web browser. Then, first thing we'll gonna do is we'll create a new database and create a new password for it. Note, the master password is admin by default. Then, we can login to our panel with that username and password.

Odoo Panel


Odoo 8 (formerly OpenERP) is the best ERP app available in the world of Open Source. We did an excellent work on installing it because OpenERP is a set of many modules which are essential for a complete ERP app for business and company. So, if you have any questions, suggestions, feedback please write them in the comment box below. Thank you ! Enjoy OpenERP (Odoo 8)  :-)

Filed Under : LINUX HOWTO

Free Linux Ebook to Download

Comments (6)

Trackback URL | Comments RSS Feed

  1. Seun says:

    I am currently trying out this steps and i will revert if i got any question

  2. Seun says:

    Wow! followed this instruction and it works great without error.

    Thanks to u bro

  3. Theo says:

    It works perfectly for me and thanks very much

  4. junf says:

    It’s very concise step by step tutorial, everything is working well..

    • vx2008 says:

      when I create a database in the command line as below:
      # createdb v8dev
      I get below :
      "createdb: could not connect to database template1: FATAL: role "root" does not exist
      what is the problem?

  5. vx2008 says:

    yes, it is perfect for odoo's installation;
    but I have a problem about odoo's development.
    each time I open my computer, the Odoo is already running; and I want to know what if I create a database: "createdb v8dev" in the command line or do other development,such as make modules?

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.