2009-04-21 09:06:37 +00:00
|
|
|
openerp-server for Debian
|
|
|
|
-------------------------
|
|
|
|
|
2009-08-24 18:02:06 +00:00
|
|
|
Open ERP uses a PostgreSQL database to store its data. With the first generation
|
2009-04-21 09:06:37 +00:00
|
|
|
of packages, you have to setup this database manually. Here is a short
|
|
|
|
explanation how to achieve this (you need to execute all commands as root):
|
|
|
|
|
|
|
|
0. Making sure, PostgreSQL is running
|
|
|
|
|
2009-04-21 09:06:43 +00:00
|
|
|
# /etc/init.d/postgresql restart
|
|
|
|
|
|
|
|
Note that depending on the version of PostgreSQL installed on your system,
|
|
|
|
the above syvinit script could also be named postgresql-VERSION (whereas
|
|
|
|
'VERSION' needs to be replace with a version number).
|
2009-04-21 09:06:37 +00:00
|
|
|
|
2009-08-24 18:02:05 +00:00
|
|
|
1. Creating the database user
|
2009-04-21 09:06:37 +00:00
|
|
|
|
2010-10-19 09:54:43 +00:00
|
|
|
# su - postgres -c "createuser --createdb --no-createrole --pwprompt openerp"
|
2009-04-21 09:06:37 +00:00
|
|
|
|
2009-04-21 09:06:44 +00:00
|
|
|
Note: If you want to run the database as another user than 'openerp', you
|
|
|
|
need to replace 'openerp' above with the user you want instead, and you
|
|
|
|
need to adjust 'db_user = openerp' in /etc/openerp-server.conf too.
|
2009-04-21 09:06:37 +00:00
|
|
|
|
2009-08-24 18:02:05 +00:00
|
|
|
3. Restarting openerp-server
|
2009-04-21 09:06:41 +00:00
|
|
|
|
2009-08-24 18:02:05 +00:00
|
|
|
# /etc/init.d/openerp-server restart
|
2009-04-21 09:06:41 +00:00
|
|
|
|
2009-04-21 09:06:37 +00:00
|
|
|
|
2009-08-24 18:02:05 +00:00
|
|
|
4. Initializing the database
|
|
|
|
|
2009-08-24 18:02:06 +00:00
|
|
|
Now you can connect with Open ERP client to the database and initialize it.
|
2009-04-21 09:06:37 +00:00
|
|
|
|
|
|
|
Now, you're finish. Please be aware of the following things:
|
|
|
|
|
|
|
|
* openerp-server has by default two accounts:
|
|
|
|
- User: admin; password: admin
|
|
|
|
- User: demo; password; demo
|
|
|
|
|
2009-06-02 17:15:34 +00:00
|
|
|
* openerp-server listens by default on port 8070. If you need to change this,
|
|
|
|
edit /etc/openerp-server.conf and replace 'port = 8070' with
|
2009-04-21 09:06:37 +00:00
|
|
|
'port = <your port>'.
|
|
|
|
|
|
|
|
* openerp-server in the upstreams configuration listens by default to *all*
|
|
|
|
interfaces. For security reasons, we do restrict it in the Debian packages
|
|
|
|
to listen only on localhost. If you need to change this, edit
|
|
|
|
/etc/openerp-server.conf and replace 'interface = localhost' with
|
|
|
|
'interface = <your ip>'.
|
|
|
|
|
|
|
|
-- Daniel Baumann <daniel@debian.org> Fri, 1 Jun 2007 12:00:00 +0200
|