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
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:
- Use SSH to connect to droplet
- Use PuTTy to login for windows
- Use the console in Digital Ocean dashboard
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.
The first section contains settings like where to install, port, admin password etc.. Following is the first part of shell script.
#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.
#Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.)
#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
#set the superadmin password
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.
After installation, following output will print i screen.
Done! The Odoo server is up and running. Specifications:
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.