How to install Odoo 9 on Ubuntu 14.04 – Digital Ocean

Digital Ocean is a very good cloud hosting provider considering the cost and simplicity. It provides some click to install apps too for the easy installation. But Odoo (formerly OpenERP) is not one of them. That’s OK. It is very easy to install Odoo with required modules.

Note: This tutorial is applicable to any VPS providers, not only Digital Ocean

Droplet/VPS setup

This tutorial considers that you’ve already setup a droplet with Ubuntu 14.04 LTS. If not please refer this tutorial: How to setup your first droplet.

Now we have to get inside the VPS, you have three different options to login to a remote server:

  1. Use SSH to connect to droplet
  2. Use PuTTy to login for windows
  3. Use the console in Digital Ocean dashboard

Installation

Now you are in the server. Lets download the script for installing Odoo. This script also installs many dependencies with it. So it is very easy. First download the script. Enter the droplet password when asks.

sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/9.0/odoo_install.sh

Now edit the script to change some settings.

vim odoo_install.sh

The first section contains settings like where to install, port, admin password etc.. Following is the first part of shell script.

##fixed parameters
#odoo
OE_USER="odoo"
OE_HOME="/$OE_USER"
OE_HOME_EXT="/$OE_USER/${OE_USER}-server"
#The default port where this Odoo instance will run under (provided you use the command -c in the terminal)
#Set to true if you want to install it, false if you don't need it or have it already installed.
INSTALL_WKHTMLTOPDF="True"
#Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.)
OE_PORT="8069"
#Choose the Odoo version which you want to install. For example: 9.0, 8.0, 7.0 or saas-6. When using 'trunk' the master version will be installed.
#IMPORTANT! This script contains extra libraries that are specifically needed for Odoo 9.0
OE_VERSION="9.0"
#set the superadmin password
OE_SUPERADMIN="admin"
OE_CONFIG="${OE_USER}-server"

Default settings – changes

In the settings, only two things matters for us right now.

The OE_PORT variable is the port which is going to use for accessing Odoo. The default value is 8069, that means your Odoo address will be http://ip-address-of-vps:8069. This can be changed as per your requirement.

OE_SUPERADMIN is variable storing the password of the super admin user. This user will manage the installation and setup of various apps in Odoo. The default username and password is “admin”.
Both of these settings can be changed even after installation, so don’t worry if you are confused.

Let’s make the script executable.

sudo chmod +x odoo_install.sh

Then install the script and it will take some minutes to complete.

sudo ./odoo_install.sh

After installation, following output will print i screen.

Done! The Odoo server is up and running. Specifications:
Port: 8069
User service: odoo
User PostgreSQL: odoo
Code location: odoo
Addons folder: odoo/odoo-server/addons/
Start Odoo service: sudo service odoo-server start
Stop Odoo service: sudo service odoo-server stop
Restart Odoo service: sudo service odoo-server restart

You can check it by visiting http://ip-address:8069/. If you have changed the default port, you should use that instead of 8069. First screen will be to create the database. Give a name to your database, and enter username and password. Congratulations, you’re seeing the dashboard of Odoo. Go to apps to install applications.

Odoo database naming

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.