- OpenERP Server Installation
- OpenERP Server Configuration
- OpenERP Web Installation
- OpenERP Web Configuration
- Start OpenERP Services!
This howto contains 2 parts:
- Installation and configuration of openerp-server (the server package)
- Installation and configuration of openerp-web (the webclient gui)
OpenERP Server Installation
Installing the required packages
Now let’s install the required packages:
There is one more package that we need, but it’s not in the repositories. You can download it from rpmfore and install it:
Download OpenERP here to /usr/src:
That’s it really :-)
Run as a daemon
There is no init script available for openerp-server and it has no option to force it to the background. You could run it in screen but that’s not necessary as I wrote an init script for CentOS for you to use ;-).
First, we need to add an openerp user.
Now, download the openerp-server.txt init script and add it as a service:
Do not start it yet! First see the openerp-server configuration section.
OpenERP Server Configuration
First we’ll need to configure postgresql to setup an openerp user and database. Let’s start postgres:
If your selinux is enabled and enforcing RECOMMENDED! there might be a problem launching postgresql. If so check your audit log and create a policy for postgresql.
Now, let’s create a user for openerp:
Now, let’s create the postgres db:
To allow openerp-server to login to postgresql edit the following file: /var/lib/pgsql/data/pg_hba.conf Make sure it looks like this (insert lines marked with ‘»’ but opress the ‘»’ !! :
Now that postgresql is configured, we can configure openerp-server. We are going to start openerp-server with the -s parameter, this gives us a basic config we can edit to our needs.
Now, we can stop it again and edit the configuration file. Let’s edit it:
And change the following lines:
That’s it!! OpenERP server is configured, you can now start it:
And go on with installation and configuration of openerp-web.
OpenERP Web Installation
Download openerp-web here.
If you are having issues with easy_install, please try running the following commands:
Look for the config file and copy it to /etc/openerp-web.cfg
Run as a daemon
An init script for openerp-web is available but sadly it only works for debian/ubuntu as the /etc/init.d/functions differ too much on Red Hat/CentOS. But not to worry, you can download the openerp-web init script here ;-).
Download the openerp-web.txt init script from the file attachments and add it as a service:
Do not start it yet! First see the openerp-web configuration section.
OpenERP Web Configuration
Just edit the configuration file to your needs:
Basicly you need to change the following values:
Also, make sure the /var/log/openerp-web directory exists and is owned by openerp !
Start OpenERP Services!
You’re done! You can now start both services:
And go to http://your-openerp-server:8080/ to log in as admin and do OpenERP stuff like enabling LDAP login, creating your company profile, customers, …
To create a database, you can use the openerp-client or openerp-web interface and use the admin password set in openerp_serverrc.