Odoo Help


5 Answers

patrick Netherlands


| 5 4 9
Baarn, Netherlands
patrick Netherlands
5/16/13, 11:49 AM

The short answer: Yes, you can install openERP 7 on RedHat. At the moment I do not have the various commands, but a colleague of mine has installed openERP7 on CentOS (which is based on RedHat). I might be able to give you a script to install it on CentOS. Need to contact the colleague first...


Check for the various dates in the downloads to get the latest version of the software

# OpenERP Server Initialisation for CentOS 6.5
# Written by Eelco Plugge <eelco AT handedby <.> com> v1.0 (2013.04.09)

# Define shell variables (for root user) necessary for several packages to function
export LANG=C
export LC_CTYPE=C

# Download and run system update via Yum, install mandatory packages via Yum
yum -y update
yum -y install man wget vim libevent unzip 

# Download additional prerequisites
cd /tmp
wget http://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz && tar -xvzf pyparsing-1.5.7.tar.gz && cd pyparsing-1.5.7 && python setup.py install
wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.zip && unzip gdata-2.0.17.zip && cd gdata* && python setup.py install
rpm -Uvh http://pkgs.repoforge.org/tmux/tmux-1.6-1.el6.rf.x86_64.rpm
rpm -Uvh http://prdownloads.sourceforge.net/webadmin/webmin-1.620-1.noarch.rpm 
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm
wget https://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg && sh setuptools-0.6c11-py2.6.egg
easy_install openerp-client-lib

# Install core prerequisistes for OpenERP
yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz python-matplotlib python-babel python-mako python-dateutil python-psycopg2 pychart pydot python-reportlab python-devel python-imaging python-vobject hippo-canvas-python mx python-gdata python-ldap python-openid python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib python python-devel python-psutil python-docutils make automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav postgresql92-libs postgresql92-server postgresql92

# Add users for managment and OpenERP. Requires manual input of the password (set to "openerp")
#useradd <name user>
#useradd -e yyyy-mm-dd <mane user>
su - postgres -c "createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp"
adduser openerp
DIR="/var/run/openerp /var/log/openerp"
for NAME in $DIR
if [ ! -d $NAME ]; then
   mkdir $NAME
   chown openerp.openerp $NAME
rm -rf openerp*

# Fetch and install OpenERP
cd /tmp
wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-20130408-232357.tar.gz && tar -xvzf openerp-7.0-20130408-232357.tar.gz --transform 's!^[^/]\+\($\|/\)!openerp\1!' && cd openerp && python setup.py install
rm -rf /usr/local/bin/openerp-server
cp openerp-server /usr/local/bin
cp install/openerp-server.init /etc/init.d/openerp
cp install/openerp-server.conf /etc
chown openerp:openerp /etc/openerp-server.conf
chmod u+x /etc/init.d/openerp

# Initialise services
/etc/init.d/webmin start
service postgresql-9.2 initdb
chkconfig postgresql-9.2 on
service postgresql-9.2 start
chkconfig openerp on
service  openerp start

# Clear firewall, enabling access
iptables -F
iptables -F INPUT
iptables -A INPUT -p tcp --dport ssh -j ACCEPT
iptables -A INPUT -p tcp --dport 8069 -j ACCEPT
iptables -A INPUT -p tcp --dport 10000 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -j LOG -m limit
iptables -P INPUT DROP

iptables -F OUTPUT
iptables -A OUTPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -o lo --dport telnet -j ACCEPT
iptables -A OUTPUT -p tcp --dport telnet -j REJECT
iptables -P OUTPUT DROP
eric machine Malaysia
5/16/13, 11:50 AM

thanks in advance :)

Michael Wassmer Spain
5/23/13, 10:42 AM

What does the IP "<IP Adress removed>" in the firewall part refer to ? Does this have to be replaced by the server IP ?

patrick Netherlands
5/23/13, 11:10 AM

I think the ip is the fixed ip of our internet connection.... Just removed it from the script

Hughes Networks, Steve Hughes United States
7/4/13, 4:24 PM

This doesn't work on CentOS 6.4. Is 6.5 the development version, 6.5 doesn't appear as a download on the CentOS mirrors I checked?

This command required adding the --no-check-certificate option to work... wget --no-check-certificate https://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg && sh setuptools-0.6c11-py2.6.egg

also this command errors out- can't find postgres su - postgres -c "createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp"

and after everything finishes, can't connect to OpenERP

Kaouam Ilyass Morocco
1/6/14, 6:49 AM

thank you it's work perfectly

Mehdi Morocco
7/15/14, 7:29 AM

Thank you for this post but I do have this error message :


[root@localhost ~]# yum -y update
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=extras error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: extras

Any propositions ?

thnx again for your concern.

All Kar United States
1/12/14, 6:52 PM

Thank you!

Kaouam Ilyass Morocco
1/6/14, 6:47 AM

thank you it's work perfectly

Pérabohin COULIBALY Côte d'Ivoire
6/21/13, 12:13 PM

Problem to openning a web page after installation openerp-7.0-latest sur RedHat Entreprise Linux 6.3.


i followed this tutorial to install and configure OpenErp on my virual machine (OS: RedHat Entreprise Linux 6.3). Everything is working normaly .

less /var/log/openerp/openerp-server.log 2013-06-16 03:36:25,500 3522 INFO ? openerp: OpenERP version 7.0-20130613-231107 2013-06-16 03:36:25,501 3522 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons 2013-06-16 03:36:25,501 3522 INFO ? openerp: database hostname: localhost 2013-06-16 03:36:25,501 3522 INFO ? openerp: database port: 5432 2013-06-16 03:36:25,501 3522 INFO ? openerp: database user: openerp 2013-06-16 03:36:38,798 3522 INFO ? openerp.addons.google_docs.google_docs: GData lib version %s GData-Python/2.0.17 detected 2013-06-16 03:36:43,516 3522 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 2013-06-16 03:36:43,535 3522 INFO ? openerp: OpenERP server is running, waiting for connections... 2013-06-16 03:36:43,729 3522 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on

Nothing is appear when i do this http:\ or http:\ on my web browser.

Please what can i do to openning OpenERP 7.0-latest on my web browser

Ask a Question
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now