How to install Odoo 10 on Centos 7

Update: This post originally was for Odoo 9 installation. Now updated for Odoo 10.

In this post I will go through the full fresh installation of Odoo erp community version on Centos7. I have fairly fresh Centos installation which will be used just as Odoo server. I will also use PostgreSQL as database.

All the details and screenshots are correct for below:

OS: Centos 7 ( Linux 3.10.0-327.4.5.el7.x86_64)
Odoo version: odoo-10.0_20161014-1.noarch
Database: PostgreSQL-9.5


Make sure that all services installed on your server are up to date and install dependencies:

sudo yum install -y epel-release
sudo yum -y update
sudo yum install yum-utils
sudo yum install fontconfig libpng libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi wkhtmltopdf


Remove other db servers and install Postgresql and start it:

sudo yum remove mariadb mariadb-server
sudo yum install -y postgresql-server
sudo postgresql-setup initdb
sudo systemctl enable postgresql
sudo systemctl start postgresql


Add Odoo repository:

sudo yum-config-manager --add-repo=

and finally install and start Odoo 10

sudo yum install -y odoo
sudo systemctl enable odoo
sudo systemctl start odoo

Open Odoo’s configuration file and uncomment the ‘admin_passwd’ line to set the admin master password

sudo vim /etc/odoo/odoo.conf

admin_passwd = YourPassword

Don’t forget to replace ‘YourPassword’ with an actual strong password.

Restart Odoo for the changes to take effect

sudo systemctl restart odoo


Firewall Settings

By default in Centos 7 minimal installation firewalld is installed and enabled. You need to open the port 8069 to be able to access it from the browser. I use this server just for Odoo tests so to make it easier to access I just forward port 80 to 8069 through fiirewalld port forwarding function:

sudo firewall-cmd --zone=public --permanent --add-masquerade
sudo firewall-cmd --zone=public --permanent --add-forward-port=port=80:proto=tcp:toport=8069
sudo systemctl reload firewalld
sudo firewall-cmd --list-all

public (default, active)
  interfaces: eno16777984
  services: dhcpv6-client ssh
  masquerade: yes
  forward-ports: port=80:proto=tcp:toport=8069:toaddr=
  rich rules:

Now, open a web browser and access Odoo 10 at http://server-hostname-or-IP-address to create a new PostgreSQL database and set password for the admin user.



  1. i’m having issues with the install and can’t seem to finish the install. can you please help?

    1. hi Tasik,
      can’t help without knowing the step and the problem you are having.
      Let me know more about the details of the problem you are having or for quicker answer you can post the details on the Odoo community forum page here:

      good luck 🙂

  2. I have trouble starting odoo. The installation went fine but now when I am opening it in my browser; it is showing.. The site can’t be reached.
    what could be the problem and how to resolve it?

Leave a Comment

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.