Вы находитесь на странице: 1из 20

10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Odoo tutorials
Odoo made easy

Search …

 RECENT POSTS 
Introducing Oocademy: better Odoo e-
learning for you

Installing Odoo 12 (enterprise) on


Ubuntu

Creating building blocks in Odoo

Con guring submodules on Odoo.sh

Installing Odoo frontend and backend


on di erent servers

SUBSCRIBE TO BLOG VIA


EMAIL
https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 1/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Enter your email address to subscribe to this


blog and receive noti cations of new posts by
email.

Email Address

SUBSCRIBE

CATEGORIES

Automated actions

Building block

Buttons

Chat

 Controllers

Data

erppeek

Filters

Github

Installation

Mail

many2many

Odoo 10

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 2/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Odoo 11

Odoo 12

Odoo 13

Odoo 8

Odoo 9

Odoo.sh

PowerBI

Python

Reports

Security

Selection

 Tests 
Tour

Translations

Uncategorized

Webpages

Website

ARCHIVES

October 2019

November 2018
https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 3/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

June 2018

April 2018

January 2018

November 2017

October 2017

August 2017

July 2017

April 2017

January 2017

December 2016

November 2016

 October 2016 
August 2016

April 2016

February 2016

January 2016

November 2015

October 2015

September 2015

August 2015

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 4/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

July 2015

June 2015

May 2015

April 2015

March 2015

February 2015

December 2014

 

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 5/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

 

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 6/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Easiest way to
make payments

Make easy payments for


bills, airtime, transfers
and more.

 

Installing and
con iguring Odoo
on DigitalOcean
 OCTOBER 1, 2017  YENTHE666
https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 7/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

In this tutorial I will teach you how to install Odoo on a


new DigitalOcean VPS. You will learn how to create a
new account, create a new server (droplet) and how to
install any Odoo version on it.
In this tutorial I will show you step by step how to
create the server and how to install the Odoo thanks
to my installation scripts.

1. Creating a DigitalOcean account

If you do not have a DigitalOcean account yet you


should create one. If you do you can continue to
chapter 2. You can create a new DigitalOcean account
through this link, which will give you $100 for free to
start with. After clicking on this link you will see the
following screen:

Simply click on the link, ll in an e-mailadress and a


password and click on “Sign Up”. After doing so you’ll

 get an e-mail in your inbox. Open up the link in your e-


mail and your account will be activated. 
2. Creating a new server (droplet)

Now that you have an account it is time to create a


VPS. DigitalOcean calls a VPS (or a server) a droplet.
When you’re on the home screen after logging in you’ll
see a button “Create”. After you click on this button
you will see a dropdown that has an option called
“Droplets“, click on it:

After clicking on the button a new page will show up


asking which OS you want to use and what

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 8/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

speci cations (with their prices) you’d like:

For this tutorial I will create an Ubuntu 16.04.3 droplet


(VPS) with 2GB RAM, 2 CPU’s and 40GB storage. This
will cost $20 per month at the time of writing.
Choosing what server you need is up to you and
depends on your requirements. Do know that a server
with less than 1GB of RAM will not work out. Finally
you will see some additional options, the ability to add
an SSH key and to name your droplet (VPS) as you’d
like:

 

I’d advice you to check on “Monitoring” as it has no


extra costs but it allows you to con gure warnings. For
more information about monitoring you should read
this article from DigitalOcean.
Now give your droplet (VPS) a name and click on the
“Create” button. A few seconds later you will see that
the droplet (VPS) is being created:

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 9/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

That’s it! You’ve just created a new droplet and are


ready to connect with it.

3. Connecting with the DigitalOcean


droplet (VPS)

Because you’ve just created a new droplet (VPS) you’ve


gotten an e-mail in your inbox. Open up your mailbox
and you will nd an e-mail with all the information you
need to connect to the remote server:

 
You can now SSH to the server with these details in
order to con gure the server and install Odoo. You
can connect by using the Linux command ‘ssh’, which
looks like this:

1 ssh root@138.68.95.197

SSH tells Linux that you want to open up a secure


connection, root is the username of the user you’re
connecting with and 138.68.95.197 is the IP of the
server.
After entering this command you will get the question
if you’re sure to continue connecting, just type yes.
Now you’ll need to enter the password that is inside
the e-mail you’ve recieved from DigitalOcean. Finally
the server will ask you your current password and a
https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 10/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

new one, in order to change your automatically


generated password to a safer one. Go ahead and
change your password, after doing so you’re good to
go:

4. Installing Odoo

That wasn’t too bad right? Now there is just one more

 
thing to do: install Odoo on the server!
In order to install Odoo on the server you can use my
installation script, which does a lot of the installation
automatically. You can nd an installation script for
every Odoo version on Github. In this example I will
install Odoo 10, but you’re free to install any other
version.

4.1 DOWNLOADING THE INSTALLATION


SCRIPT

If you want to install Odoo 10 you can run the


following command:

1 sudo wget https://raw.githubusercontent.c

If you want to install Odoo 9 you can run the


following command:

1 sudo wget https://raw.githubusercontent.c

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 11/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

If you want to install Odoo 8 you can run the


following command:

1 sudo wget https://raw.githubusercontent.c

As a result you will get a new le (named


‘odoo_install.sh’) on your system which contains all the
code to install Odoo:

4.2 CONFIGURING THE INSTALLATION SCRIPT

Now open up the le and edit the parameters to your


liking:

1 sudo nano odoo_install.sh

There are some things you can con gure/change to

 your likings at the top of the script. You can choose if


you wish to install Wkhtmltopdf or not, which version 
you’d like, where the location is and most importantly
what the master admin password is.
Tip: always modify this for every Odoo you install!
If you want the enterprise version of V10 you should
change the line IS_ENTERPRISE to true:

1 IS_ENTERPRISE="True"

If you want the community version you can just


continue and keep the IS_ENTERPRISE key on False
(which is the case by default):

1 IS_ENTERPRISE="False"

4.3 MAKING THE ODOO INSTALLATION FILE


EXECUTABLE

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 12/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

The next step is to make this le executable. After


you’ve made it executable you can execute it and
everything will be installed automatically.
You can do this with the following command:

1 sudo chmod +x odoo_install.sh

4.4 RUNNING THE INSTALLATION SCRIPT

Now that the code is in your le and the le is


executable you simply have to execute it with the
following command:

1 ./odoo_install.sh

You will see that the script automatically starts


updates, downloads required packages, creates the
user, downloads the code from Github, … Eventually, if
you’ve chosen to install the enterprise version, you will
need to give in your Github credentials to download
the Enterprise code (since this is a private repository).
Fill in your details and let the script continue:

 
Finally, give the script a few minutes to con gure and
install everything and eventually you will see
something like this:

You now have a fully functional Odoo on your system!


Congratulations.

4.5 ACCESSING YOUR ODOO

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 13/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Good job! You’ve created a DigitalOcean account,


created a droplet (VPS), con gured it and installed
Odoo on it. Now it is time to enjoy the results of your
hard work. If you now open up your browser and surf
to your IP and the port you’ve installed Odoo on (by
default 8069) you can see your Odoo is up and
running. Because the droplet (VPS) is automatically
connected to the internet (a public IP address) your
Odoo will also be publicly available. Go to
http://yourip:yourport and you will see your just
installed Odoo:

4.6 SECURITY ADVISORY

 As security is a very big topic I did not add anything 


about security in this tutorial. Please do con gure your
Odoo with a rewall, Nginx, SSL and best security
practices. The security part is out of scope in this
tutorial because of the size of the subject but please
do add in security rules.
For more information please do look at Nginx, the
o cial DigitalOcean security measures and
LetsEncrypt.

5. Conclusion

Creating a new server, con guring it and installing an


Odoo on it is very easy with DigitalOcean. You’ll have a
VPS in a matter of minutes for an a ordable price.
Due to the accessibility and exibility of DigitalOcean
and Odoo it has never been so easy to have an ERP
publicly available.
https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 14/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Has this tutorial helped you, do you have any feedback


or questions? Post away!

Share this:

 Share

Like this:

Like
2 bloggers like this.

DIGITALOCEAN DROPLET INSTALLATION

 
ODOO 10 ODOO 9

11 thoughts on “Installing and con iguring Odoo on


DigitalOcean”

Amaro Pesquero

this tutorial is great, it would be great if you complete


it with the complete connection with pycharm in
remote

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 15/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

 LOG IN TO REPLY
 OCTOBER 1, 2017 AT 17:10

Yenthe666

Hi Amaro,

Thank you! I’ll keep it on the ‘wishlist’ – no


promisses for now. 😉

 LOG IN TO REPLY
 OCTOBER 6, 2017 AT 15:30

 SISalp

hello, thank you for this new tuto.

Reading the install script, it seems that you launch


Odoo directly exposed to the wild, responding directly
on its IP, with no protection, not even SSL encryption.
Do you really mean it ?
May I also recommend you block ssh login to root at
least.

 LOG IN TO REPLY
 OCTOBER 1, 2017 AT 17:31

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 16/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Yenthe666

Hi SISalp,

Thank you for your response.


There are absolutely more things to do when you
install an Odoo on a cloud platform (such as
rewall, SSL, forwarding, etc) but this would make
the tutorial very long and complex. This is why I’ve
added in a small chapter notifying the end user
about this. Whenever I nd some time I will try to
create a follow-up which explains how to add
Nginx for example.

 LOG IN TO REPLY
 OCTOBER 6, 2017 AT 15:30

 Sami

Thanks in advance /yenthe
Also which version of oddo good for Arabic language?
Of course Arabic language start from right to left!!
Thanks

 LOG IN TO REPLY
 OCTOBER 2, 2017 AT 12:02

Yenthe666

Hi Sami,
https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 17/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Languages are more or less handled the same


(and as good) in the latest three versions. So it
would be up to you to start in 10.0 or 11.0. At the
moment 11.0 still has some bugs and it is very
new but it would safe you an upgrade from V10 to
V11.

 LOG IN TO REPLY
 OCTOBER 6, 2017 AT 15:14

Abdullah

Hi Yenthe. Thanks for great tutorial. It will be great if


you can also give a script to update it to latest nightly.
Much appreciated. Thanks

 LOG IN TO REPLY

  FEBRUARY 1, 2018 AT 14:08


Yenthe666

Hi Abdullah,

You’re welcome! At the moment I don’t have


anything like this on the planning. Linux with a git
fetch is much easier and exible anyways.

 LOG IN TO REPLY
 FEBRUARY 23, 2018 AT 20:27

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 18/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

Imran Ayob

thanks – a great help for a linux/odoo novice

 LOG IN TO REPLY  JULY 14, 2018 AT 22:48

adi

thanks for your tutorial, how to access IP without port


?

 LOG IN TO REPLY
 NOVEMBER 18, 2018 AT 06:53

 
Yenthe666

You’d need to install Nginx and create a redirect


for that.

 LOG IN TO REPLY
 NOVEMBER 18, 2018 AT 08:18

Leave a Reply

You must be logged in to post a comment.

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 19/20
10/7/2020 Installing and configuring Odoo on DigitalOcean - Odoo tutorials

PROUDLY POWERED BY WORDPRESS | THEME: FICTIVE BY WORDPRESS.COM.

 

https://www.odoo.yenthevg.com/installing-configuring-odoo-digitalocean/ 20/20

Вам также может понравиться