How to install Odoo 9 on a CentOS 7


Odoo is one of the booming Open Source ERP business software based on the Python programming language.  In this tutorial, We will be installing Odoo 9 on CentOS 7  This new version of Odoo comes with many improvements over its predecessor and many new features such us:

  1. New WYSIWYG website editor
  2. Draging and dropping  building block.
  3. New payment gateway integration
  4. Ebay and Amazon integration
  5. New contract management
  6. New accounting
  7. New marketing apps
  8. Fully responsive and fast design
  9. Improved dashboards and reports
  10.  Shops and restaurants management

and many more.

The steps involved are given below:

Ensure server is up to date with all the services installed in it.

yum update -y

Odoo uses a PostgreSQL database, so we have to remove other database server if you have already installed

To remove MariaDB server

yum remove maradb mariadb-server

Odoo 9 needs dependencies to install it so you need to add EPEL repo to your destribution repos.

yum install -y  epel-release

Now its time to install database needed by Odoo i.e. PostgreSQL server
yum install -y postgresql-server 

After the installation we have to initialize the database
postgresql-setup initdb

To start the postgreSQL server and start it at the boot time
systemctl start postgresql
systemctl enable postgresql

To install Odoo we need to create new repo of it 
use your favorite editor and ope the file:

vi /etc/yum.repos.d/odoo.repo 

Add the following content in the file above:
name=Odoo Nightly repository

Finally, time to install Odoo with the latest verion

yum install -y odoo

This will install all the dependencies needed.

We need to start the odoo and start at the boot time once it has been installed.

To start odoo

systemctl start odoo 

To start at the boot time

systemctl enable odoo

The configuration file of Odoo is /etc/odoo/openerp-server.conf 
you would want to open with text editor and change the password 
vi /etc/odoo/openerp-server.conf
At line no 3 
admin_passwd = n0cadmin

I have changed it to n0cadmin as shown above.
You would want to replace with some strong password that you can remember.

Restart Odoo to take effect

systemctl restart odoo

You might need to support pdf format for the reports so wkhtmltopdf has to be installed on your server.
Since, the version of wkhtmltopdf available in the CentOS repo does not support headers
and footers, we will download manually from their official website and install it on
our server.

First we need to install its dependencies for wkhtmltopdf

yum install fontconfig libpng libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
You have to copy the appropriate rpm file for wkhtmltopdf from its official website as 

To manually install 

rpm -Uvh


Now, open a web browser and access Odoo 9 at http://yourIPaddress:8069 to create a new PostgreSQL database and set password for the admin user.odoo

Rajkishor Maharjan has written 17 articles