OpenERP on Red Hat Enterprise Linux 6

Here are some quick instructions to get OpenERP 6 up and running on RHEL6 (or any of its clones such as CentOS, Ascendos, etc.). It’s not meant to be a full howto, but might help in some cases.

OpenERP is still not included in Fedora nor EPEL as of writing this. Hopefully this will change soon, and the progress can easily be seen in bug #693425. Until then, I’ve built my own packages of OpenERP.

Download and install openerp-server available here (version 6.0.3 initially). All its requirements are available from EPEL :

# Replace the version with the latest one
yum install http://dl.marmotte.net/rpms/redhat/el6/x86_64/openerp-server-6.0.3-0.el6/openerp-server-6.0.3-0.el6.noarch.rpm

Install PostgreSQL and create the openerp user. The easiest is to have it on the same server, but that’s not mandatory :

Edit the /etc/openerp-server.conf configuration file to make the following changes. Note that this way we split the “openerp” user’s access to PostgreSQL by making sure it goes through TCP and not the UNIX socket, as we enabled md5 password authentication for TCP while the UNIX socket still used ident, which the system “postgres” account needs :