Odoo is a bundle of business management software. CRM, billing and accounting, manufacturing, e-commerce, inventory management, and project management are among the technologies available.
Odoo can be self-hosted (odoo.sh) or can be privately hosted on either VPS or Amazon AWS.
In this tutorial, I’ll go over how to install and run Odoo on Amazon Web Services (AWS).
Create AWS profile
- Generate an account on AWS and log in.
- Pick one service that you need from the Amazon server. In this case, choose EC2 under the menu named Compute.
- To learn about the status, operating instances, hosts, locations, and other details visit the EC2 dashboard.
- Odoo must be hosted on an EC2 instance.
- Use the Launch Instance option.
- Choose the Ubuntu server to drive the instance.
After you’ve created the Ubuntu instance, pick an instance type. The type is chosen based on the application’s needs.
- Pick the General Purpose t2.micro from the list.
- If any specific network settings are required, click configure the instance.
- Then, for the instance you’ve chosen, add the storage you’ll require.
- Add tags by clicking on them. It’s a resource management key-value pair.
- The next step is to set up the security group. Choose odoo security as the name, then add the protocols TCP, HTTP, HTTPS, and SSH. The default port for Odoo is 8069.
- To finish, press Review and Launch.
Launching the instance
- Select the Launch option.
- A dialogue window appears with instructions for creating a key-value pair.
- Select a new key pair and give it the name odoo. Separately download and save the key for future usage.
- The instance will now run on Amazon Web Services (AWS).
- Putty should be downloaded. AWS will provide you with the instance ID.
- Convert .pem key file to private .ppk file using Puttygen.
- On the pop-up, select load existing private key option.
- Open the odoo key and press OK.
- Save the private key for connecting to SSH.
- Open Putty and enter the Instance IP address and port number.
- In Data under Connection enter Ubuntu as username.
- Now navigate to SSH and then Auth. Look for the private key file and enter yes when asked if the source is trusted. The connection is now established.
Install and run Odoo
- Configure the servers, install packages, and get the modules you need.
- To create an Odoo user, run the following two commands:
sudo adduser — system — quiet — shell=/bin/bash — home=/odoo — gecos ‘ODOO’ — g roup
odoo sudo adduser odoo sudo
3. To install Odoo server:
sudo git clone https://www.github.com/odoo/odoo /odoo/odoo-server/
4. Build a module directory. Set permission to Odoo.
5. A config (.conf) file for the server should be created with a password, log path, port number, and add-ons path.
6. The permission is now set to the config file.
7. A startup file needs to be generated followed by the Odoo Daemon file.
8. The Odoo can now be started using
sudo /etc/init.d/odoo-server start