Install OpenERP in Ubuntu

Install OpenERP in Ubuntu

To install open-erp in Ubuntu :

1
2
3
wget -c https://raw.githubusercontent.com/aschenkels-ictstudio/openerp-install-scripts/master/odoo-v8/ubuntu-14-04/odoo_install.sh
chmod a+x odoo_install.sh
./odoo_install.sh

Edit “/etc/odoo-server.conf” :

1
2
3
4
5
6
7
8
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = username
db_password = password
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons

Make sure your add username and password PostgreSQL account that able to create database.

In NGINX, create virtualhost :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
upstream oddo {
    server 127.0.0.1:8069;
}

server {
    listen 80;
    server_name openerp.polatic.com;
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    location / {
        proxy_pass  http://oddo;
        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
        proxy_redirect off;

        proxy_set_header    Host            $host;
        proxy_set_header    X-Real-IP       $remote_addr;
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header    X-Forwarded-Proto https;
    }

    location ~* /web/static/ {
        proxy_cache_valid 200 60m;
        proxy_buffering on;
        expires 864000;
        proxy_pass http://oddo;
    }
}

Then start the service :

1
sudo service odoo-server start

Done!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.