Skip to content

Instantly share code, notes, and snippets.

@Danielericking
Forked from bjsion/Installing Odoo on AWS
Created September 16, 2020 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danielericking/387958f520579f40a17a9c58d37fb3a6 to your computer and use it in GitHub Desktop.
Save Danielericking/387958f520579f40a17a9c58d37fb3a6 to your computer and use it in GitHub Desktop.
Installing Odoo ERP on AWS using RDS and EC2
# Installing Odoo on AWS
These are the steps I ran to get Odoo up and running on AWS using the free tiers (for now).
## Setup servers
### Create DB
Create an Postgres DB on Amazon RDS:
https://us-east-2.console.aws.amazon.com/rds/home?region=us-east-2#launch-dbinstance:ct=dbinstances:
### Create Server
Create a EC2 Instance:
https://us-east-2.console.aws.amazon.com/ec2/v2/home?region=us-east-2#LaunchInstanceWizard:
## Install Odoo
Once those are created, ssh into your EC2 instance.
### Install Pre-requisites
> wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
> tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
> cd wkhtmltox/bin/
> sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
> sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
> sudo chmod a+x /usr/bin/wkhtmltopdf
> sudo chmod a+x /usr/bin/wkhtmltoimage
> cd
> sudo apt-get install libxrender1
> sudo apt-get install libfontconfig1
### Install Odoo Binaries
> sudo wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add -
> sudo -s
Once in as root
> echo "deb http://nightly.odoo.com/11.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
> exit
> sudo apt-get update && sudo apt-get install odoo
> whereis odoo
odoo: /usr/bin/odoo /etc/odoo
### Configure server
> cd /etc/odoo/
> sudo cp odoo.conf odoo.conf.orig
then add the following content:
db_host=<rds_db_instance>.rds.amazonaws.com
db_port=5432
db_name=odoo
db_user=<db_user_name>
db_password=<db_user_pw>
db_sslmode=prefer
email_from=<sender_address>
### Start the server
#### Service Start
> /etc/init.d/odoo stop
> /etc/init.d/odoo start
#### Manual Start
> sudo -H -u odoo odoo -c /etc/odoo/odoo.conf -u all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment