Setting up Odoo 12.0 (Community Edition) om Amazon Lightsail

Submitted by mshannaq on Sat, 03/30/2019 - 03:56

After choosing Ubuntu 18.04 (LTS) and creating the lightsail instance and give the new instance a public static IP login to server ssh and try to update and upgrade ubuntu first using

$ sudo apt-get upgrade
$ sudo apt-get update

Create a Swap file if you think your server need a swap file.

I will use or for odoo installation and Ir will install odoo 12 

$ sudo -s

# cd /root/

# wget

IF you are using odoo on ubuntu 18,04 bionic then  you are adviced to  check contents and change


# chmod +x
# sudo bash

After  running finished you will get

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

Then we must install some important libraries so we run the commands:

$ sudo apt install libpng-dev
$ cd /usr/local/src
$ wget
$ sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb

After that we allow lightsail instance to be accessed from the port 8069 by going to amazon lightail networking configuration page and add the port TCP 8060 to allow.

To Enable PDF reports in odoo12 CE  (I will use , run the following commands:

$ sudo cd /odoo/odoo-server/addons

$ sudo wget

$ sudo mv\?dl\=0

$ sudo apt-get install unzip

$ unzip

$ chown -R odoo:odoo accounting_pdf_reports/

$ rm

login to odoo and activate devloper mode > goto to app > and choose update app list from the navbar of apps
then restart install the accouting_pdf_report module and then restart odoo service

$sudo service odoo-server restart


As security is a very big topic I did not add anything about security in this blog post. Please do configure your Odoo with a firewall, Nginx, SSL and best security practices. I advice you to take a look to the following checklist

To use odoo over HTTPS I advice you to take a look of the following URL which talk how to use nginx as reverse proxy of odoo 12 to provide SSL.


Add new comment