OpenERP v6 - Installation sur Debian 6
De wikiGite
Facultatif (En root) :
dpkg-reconfigure locales
apt-get install -y mc vim sudo
(vim /etc/sudoers ou ) visudo
<user normal> Installation des pré-requis : sudo apt-get install postgresql python-lxml python-mako python-egenix-mxdatetime python-dateutil python-psycopg2 python-pychart python-pydot python-tz python-reportlab python-yaml python-vobject python-setuptools python-dev build-essential
sudo easy_install PyYaml sudo easy_install mako
Création de l'utilisateur OpenERP :
sudo adduser openerp --disabled-login --gecos OpenERP
sudo su - openerp ssh-keygen
sudo su - postgres createuser openerp
sudo su postgres -c psql ALTER USER openerp WITH PASSWORD 'openerp'
sudo vim /etc/postgresql/8.4/main/pg_hba.conf <contenu> sudo vim /etc/postgresql/8.4/main/postgresql.conf <contenu>
sudo su - openerp
En root : chmod -R 777 /usr/local/lib/python2.6/dist-packages/
wget http://www.openerp.com/download/stable/source/openerp-server-6.0.2.tar.gz wget http://www.openerp.com/download/stable/source/openerp-web-6.0.2.tar.gz
tar -zvxf openerp-server-6.0.2.tar.gz tar -zvxf openerp-web-6.0.2.tar.gz
cd openerp-server-6.0.1 python setup.py install (en root) cd .. cd openerp-web-6.0.1 python setup.py install (en root) cd ..
openerp-server --db_user=openerp --db_password=openerp openerp-web
sudo vim /etc/init.d/openerp-server sudo chmod +x /etc/init.d/openerp-server sudo mkdir -p /var/log/openerp sudo touch /var/log/openerp/openerp.log sudo chown -R openerp.root /var/log/openerp/
sudo vim /etc/openerp-server.conf
sudo vim /etc/init.d/openerp-web <contenu> sudo chmod +x /etc/init.d/openerp-web
sudo vim /etc/openerp-web.cfg <contenu>
sudo update-rc.d openerp-web defaults sudo update-rc.d openerp-server defaults