Install OpenERP 6.1 on Debian Squeeze


You can always install the latest .deb files from OpenERP, but in this tutorial we will explain how to install OpenERP 6.1 manually from the latest build.

Prepare your Debian server

Create openerp user that will be used for running the OpenERP application

adduser --system --quiet --home=/opt/openerp --gecos 'OpenERP' --group openerp

Install PostgreSQL database server and add openerp as a postgres superuser

apt-get install postgresql
su - postgres -c "createuser -s openerp" 2> /dev/null || true

Install all the required dependencies for OpenERP

apt-get install python-dateutil python-feedparser python-gdata python-ldap \
    python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \
    python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \
    python-simplejson python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-zsi

Install OpenERP 6.1 and configure the application

Get the latest OpenERP 6.1 install files and put them in /opt/openerp

cd /opt/openerp
wget http://nightly.openerp.com/6.1/releases/openerp-6.1-latest.tar.gz
tar zxvf openerp-6.1-latest.tar.gz
mkdir server
mv openerp-6.1-*/* server/

Now we are going to create full config file for OpenERP

chown openerp:openerp ./ -R
su - openerp -s /bin/bash -c "/opt/openerp/server/openerp-server -s -c /opt/openerp/openerp-server.conf"
mv /opt/openerp/openerp-server.conf /etc/openerp-server.conf
chown openerp:openerp /etc/openerp-server.conf
chmod 0640 /etc/openerp-server.conf

Creating log file

touch /var/log/openerp-server.log
chown openerp:openerp /var/log/openerp-server.log
chmod 0640 /var/log/openerp-server.log

Creating local storage directory

mkdir -p /var/lib/openerp/filestore
chown openerp:openerp -R /var/lib/openerp

Get our custom init script and place it in /etc/init.d/ and set it to start on boot

cd /etc/init/d
wget http://www.vionblog.com/wp-content/uploads/2012/10/openerp-server.txt -O openerp-server
chmod +x openerp-server
update-rc.d openerp-server defaults

Change the default admin password and logfile in /etc/openerp-server.conf

vi /etc/openerp-server.conf
admin_passwd = <your-password>
logfile = /var/log/openerp-server.log

Start the OpenERP daemon

/etc/init.d/openerp-server start

Now open your browser to http://yourdomain.com:8069/ and start using OpenERP

OpenERP Front Page

You can also secure your application by creating reverse proxy using nginx shown in our earlier post.

OpenERPhttp://www.openerp.com/
OpenERP Documentationhttp://doc.openerp.com/



8
Leave a Reply

avatar
5 Comment threads
3 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
5 Comment authors
izmezainudinMichNikola StojanoskiJohn Smith Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
John Smith
Guest
John Smith

Thank you very much for this detailed instructions, very appreciated! There are only two minor glitches:

– executing mv openerp-6.1-*/* server/ will fail, because there is no directory server, so doing mkdir server before this is missing,

– there is a missing tailing s in update-rc.d openerp-server default

One question: how would you update this? Just overwrite the files from the downloaded nightly build?

Mich
Guest
Mich

Hello
I have this kind of message when I display my homepage from my web page, is this normal?

Your version of OpenERP is unsupported. Support & maintenance services are available here: OpenERP Entreprise.
OpenERP Server Error
Client Traceback (most recent call last):
File “/opt/openerp/server/openerp/addons/web/common/http.py”, line 180, in dispatch
response[“result”] = method(controller, self, **self.params)
File “/opt/openerp/server/openerp/addons/web/controllers/main.py”, line 356, in get_list
dbs = proxy.list()
File “/opt/openerp/server/openerp/addons/web/common/openerplib/main.py”, line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File “/opt/openerp/server/openerp/addons/web/common/http.py”, line 608, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

Thank you for your help
Mich

zainudin
Guest
zainudin

hi can you help me with this error below :

File “/opt/openerp/server/openerp-server”, line 2, in
import openerp
File “/opt/openerp/server/openerp/__init__.py”, line 39, in
import service
File “/opt/openerp/server/openerp/service/__init__.py”, line 35, in
import wsgi_server
File “/opt/openerp/server/openerp/service/wsgi_server.py”, line 41, in
import werkzeug.serving
ImportError : No module named werkzeug.serving

Thank in advance

izme
Guest
izme

hello there , thanks for the installation details

am getting this error ,

Client Traceback (most recent call last):
File “/opt/openerp/server/openerp/addons/web/common/http.py”, line 180, in dispatch
response[“result”] = method(controller, self, **self.params)
File “/opt/openerp/server/openerp/addons/web/controllers/main.py”, line 374, in create
return req.session.proxy(“db”).create_database(*create_attrs)
File “/opt/openerp/server/openerp/addons/web/common/openerplib/main.py”, line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File “/opt/openerp/server/openerp/addons/web/common/http.py”, line 602, in send
raise xmlrpclib.Fault(‘AccessDenied’, str(e))

Server Access denied.

—————-
much appreciated
thanks

Advertisement