How to setup Odoo16 on AWS

Updated 3 October 2023

Odoo is a popular open-source suite of business apps that help companies to manage and run their business.

It features a large range of applications that are all perfectly connected, including CRM, e-Commerce, website builders, billing, accounting, manufacturing, and much more.

The Odoo version 16 is officially rolled out and has already created a buzz among the users. You can visit GitHub to find the Source Code for Odoo Community Edition.

With the help of this tutorial, you can install Odoo16 on Ubuntu 20.04. Let’s start the Odoo16 setup. Open your server terminal and executes the below-mentioned commands.

Step-1: Update the apt source list

Step-2: Install the Python libraries required for running the application

Step-3: Create a user to run the odoo application

Note: However, You can create your own version-specific user.

Step-4: Let’s Install & configure the database server PostgreSQL

A database can be served from the local database server as well as through the AWS RDS.

Case 1: If you are using Local Database Server (PostgreSQL)

After installing the PostgreSQL, We will set up a new PostgreSQL user in order to do the interactions with the database from the odoo application.

Case 2: If you are using AWS RDS

Amazon RDS handles routine database tasks, such as provisioning, patching, backup, recovery, failure detection, and repair.

You do not need to worry about anything, everything is managed at the AWS end.

Firstly you have to launch an RDS (PostgreSQL) and then configure it with your Ec2 instance.

Once its configured connect to your RDS and run the following command.

Step-5:Clone the most recent code from Github after switching to the odoo16 user

After the latest code is cloned on your server exit from the odoo16 user and be the root user to run further commands.

Step-6: Web dependencies required for the Odoo

Step-7: Installing wkhtmltopdf

The recommended version for Odoo is version 0.12.5. Download and install it from GitHub.

Step-8: Required python 3 dependencies for Odoo.

Step-9: Make a directory to keep track of odoo logs.

Step-10: Create a configuration file for the odoo.

Sample configuration file.

Further, Set the ownership and permission to the file.

Step-11: Create an Odoo boot script.

This script will let us start/stop the Odoo as a service automatically. Click here to get the script.

Note:- Copy the script to your server and change the daemon path with your respective path.

Now, let’s set the ownership and the permission also for the file.

Step-12: Start/Stop Odoo service

Usage: sudo /etc/init.d/odoo-server {start|stop|status|restart|force-stop|force-resart}

Monitor logs of the Odoo using the below command.

Let’s try the IP and port in your preferred browser if the logs don’t show any indication of an error.

Note – Do open the 8069 port from the AWS console in the Security group.

Once Odoo is successfully operating on a browser with a given IP address and port.
If you want to configure your Odoo application with Nginx. Click on this link.

If you find this blog helpful, Please give us your valuable time to provide us feedback for the same.

Need Support?

Thank You for reading this Blog!

For further more interesting blogs, keep in touch with us. If you need any kind of support, simply raise a ticket at https://webkul.uvdesk.com/en/.

You may also visit our Odoo development services and quality Odoo Extensions.

For further help or query, please contact us or raise a ticket.

Category(s) AWS cloud docker Odoo Security
author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project




    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home