Install Odoo 9 – CentOS 7

2016年4月7日22:59:37 发表评论 3,224 views

I’ve found that if you insist on installing Odoo on CentOS, like I do, doing it on CentOS 7 is the easiest and quickest way of going about it.

If you have a fresh CentOS 7 minimal install that’s great, if not, you’ll need to uninstall mariadb and mariadb-server before you can proceed.

NOTE: Make sure you’re not using mariadb for any other application before you uninstall it.

To uninstall issue the following at shell:

We will not install the Epel repo:

Now we install the PostgreSQL Server:

Since this is the first time installing PostgreSQL Server, we’ll need to initialize the database:

The result should be something like:

To start the PostgreSQL Server:

To add PostgreSQL Server to the startup:

Add the Odoo Repo to the server at /etc/yum.repos.d/odoo.repo

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

Now we’re ready to install Odoo, issue the following to get started:

To start Oddo:

To add Odoo to startup:

Edit Odoo’s  master configuration file, location: /etc/odoo/openerp-server.conf and set a Master password,

vi /etc/odoo/openerp-server.conf

Restart Odoo

To print PDF reports you’ll need to install wkhtmltopdf, and to install wkhtmltopdf you’ll need to install the following dependencies

You’ll now need to download the appropriate version of wkhtmltopdf from In this case it was:

You’ll now need to allow the port Odoo’s webserver operates at

Restart the firewall:

Note: I’ve allowed the port to be access by anyone on the internet, as long as this server is connected to the internet. You’ll need to play with the firewall if you want to restrict access to the port.

Hit the server in your browser to bring up the initial setup page:

Enter the Master Password you set earlier, a db name and a password which would be the admin password for the database you’re creating.

And that’s that, you’re done!


Note: I usually keep SELINUX disabled, so if you experience any kind of issue following the installation steps above, try disabling SELINUX. Make sure to reboot afterwards.

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin
0 0 投票数

0 评论