How to install OpenERP v8 on Ubuntu Server.

Hello all, today I’m going to describe about installing and configuring OpenERP Version 8 which is the latest version of OpenERP (for more details: https://www.odoo.com/ ). In here we need to care about the requirement of the OpenERP. The followings are the requirements.

  1. Ubuntu/Linux Server
  2. Apache Web Server.
  3. Postgre SQL Server
  4. Python

From here onward i am going to show you step by step on how to install all the requirements and configurations.

  1. In this step let’s install the necessary Python libraries for the Ubuntu server.
     sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
  1. In here we need a specific user account for accessing openerp server because that user specific to run the OpenERP application. So we need to add the “openerp” user in to the system.
     sudo adduser --system --home=/opt/openerp --group openerp
  2. In this step I am going to install the PostgreSQL database server and configuring it.
 sudo apt-get install postgresql
 sudo su - postgres
 createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
 

In here enter a password for accessing to the Database and make sure to keep remembering.

  1. Exit from the current shell and let’s install the OpenERP v8 server on our Ubuntu server.
    wget http://nightly.openerp.com/trunk/nightly/src/openerp-8.0dev-latest.tar.gz
     cd /opt/openerp
     sudo tar xvf ~/openerp-8.0dev-latest.tar.gz
    
    
     sudo chown -R openerp: *
     sudo cp -a openerp-8.0dev-20140416-230101 server
  2. In order to run the OpenERP, server should contain a webserver, so I’m going to install the apache2 server with libapache2-mod-wsgi.
     sudo apt-get install apache2
     sudo apt-get install libapache2-mod-wsgi
    
    
    
  3. Virtual host configuration is done in this step using apache2 server.
    sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf
    sudo nano /etc/apache2/sites-available/example.com.conf

    change the configuration with IP of your server, as shown in the image below.

    o-1

    after that complete the configuration on apache2 and restart the apache 2 service.

    sudo a2dissite 000-default.conf
     sudo a2ensite example.com.conf
     sudo service apache2 restart
  4. In this step shows the configuration to the openerp-wsgi.py script. Change the followings.conf[‘addons_path’]
    conf[‘logfile’]
    conf[‘db_password’]

o-2
save and exit

sudo mkdir /var/log/openerp
 sudo chown openerp:root /var/log/openerp
 sudo service apache2 restart
  • Now try http://yourserver/ on your browser. then you will have database setup page. Use the necessary details and configure it then go next. Finally you will have the page like this… 🙂o-3

 

 

 


					
Advertisements

One thought on “How to install OpenERP v8 on Ubuntu Server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s