OpenERP 7.0 on CentOS 6.3

OpenERP                 CentOS 6.3

I- Before

yum -y install wget unzip

II- Prerequis

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

sudo yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz \
pychart pydot python-reportlab python-devel python-vobject \
hippo-canvas-python mx python-ldap python-openid \
python-werkzeug python-vatnumber pygtk2 glade3 python-ZSI \
python python-psutil python-docutils make \
automake gcc gcc-c++ kernel-devel byacc python-babel python-mako \
poppler-utils pywebdav python-gdata python-matplotlib \
python-feedparser python-jinja2 python-lxml python-pip \
python-mock python-simplejson python-unittest2 python-yaml \

III- User

sudo groupadd openerp
sudo useradd -m -r -d /opt/openerp/ -g openerp openerp

IV- PostgreSQL

PostgreSQL
yum -y install postgresql92-libs postgresql92-server postgresql92
service postgresql-9.2 initdb
chkconfig postgresql-9.2 on
service postgresql-9.2 start

sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp

exit

V- Installation

wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz
Get the last version of OpenERP
cd /opt/openerp/
sudo tar xvf ~/openerp-7.0-latest.tar.gz

Move it

sudo chown -R openerp: *
Change permission
sudo cp -a openerp-* server
Move it to allow modification
sudo cp /opt/openerp/server/install/openerp-server.conf /etc
sudo chown openerp: /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf

Move it and change permission

sudo vi /etc/openerp-server.conf

db_password = False change by the password
logfile = /var/log/openerp/openerp-server.log

V(bis) – Testing

sudo su - openerp -s /bin/bash
/opt/openerp/server/openerp-server

Control-C
exit

VI- Configuration

cp /opt/openerp/server/install/openerp-server.init /etc/init.d
mv /etc/init.d/openerp-server.init /etc/init.d/openerp-server

sudo vi /etc/init.d/openerp-server

[ -Z "opt/openerp/server/openerp-server" ]
"/user/bin/setsid /opt/openerp/server/openerp-server"

 

sudo chmod 755 /etc/init.d/openerp-server
sudo chown root: /etc/init.d/openerp-server

sudo mkdir /var/log/openerp
sudo chown openerp:root /var/log/openerp

sudo mkdir /var/run/openerp
sudo chown openerp:root /var/run/openerp

V(bis) – Testing

sudo /etc/init.d/openerp-server start
sudo /etc/init.d/openerp-server stop

less /var/log/openerp

VII -Script automatic

chkconfig --add openerp-server
chkconfig openerp-server on

Annex

Thank The Open Sourcerer for his tuto

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>