Last active
April 16, 2024 09:36
-
-
Save bjsion/5f40f8e7990890b3b1b6cc0e010da77e to your computer and use it in GitHub Desktop.
Installing Odoo ERP on AWS using RDS and EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
Hey @bjsion, what are using now?
Hi @gerardboufaysal I stopped using it altogether as the project shut. For other products I have developed my own applications rather than something off the shelf.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Honestly I have not looked at this for a few years and have stopped using Odoo. A lot has probably changed. I posted this hoping it would be of help to the broader community, but I'm not the maintainer of Odoo. Have you tried contacting the developers?