Atlantic.Net Blog

How to Install Odoo 14 ERP on RockyLinux 8

Hitesh Jethva
by Atlantic.Net (429 posts) under Dedicated Server Hosting, Tutorials
0 Comments

Odoo is a group of business management software tools that include features for billing, accounting, eCommerce, CRM, warehouse, project management, and inventory management. It is designed for small and medium businesses and is available in the cloud or on-premise. It is user-friendly, scalable, customizable, flexible, and helps you manage businesses and organizations with a CMS.

In this post, we will show you how to install Odoo 14 in Rocky Linux 8.

Prerequisites

  • A server running RockyLinux 8 on the Atlantic.Net Cloud Platform
  • A root password is configured on your server

Step 1 – Create Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Rocky Linux 8 as the operating system with at least 8GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once you are logged in to your server, run the following command to update your base system with the latest available packages.

dnf update -y

Step 2 – Install Python packages and Odoo Dependencies

Before starting, install the EPEL repository using the following command:

dnf install epel-release -y

Once EPEL is installed, run the following command to install Python and Odoo dependencies:

dnf install python3 python3-devel git gcc git redhat-rpm-config libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel -y

Next, install the wkhtmltox to render HTML into a PDF using the following command:

dnf install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos8.x86_64.rpm

Step 3 – Install PostgreSQL

Odoo uses PostgreSQL as a database backend. You can install it using the following command:

dnf install @postgresql:12

After installing PostgreSQL, initialize the PostgreSQL database with the following command:

postgresql-setup initdb

Sample output:

WARNING: using obsoleted argument syntax, try --help
WARNING: arguments transformed to: postgresql-setup --initdb --unit postgresql
 * Initializing database in '/var/lib/pgsql/data'
 * Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log

Next, start the PostgreSQL service and enable it to start at system reboot:

systemctl enable --now postgresql

Next, create a user for Odoo with the following command:

su - postgres -c "createuser -s odoo14"

Step 4 – Install Odoo 14

First, add an odoo user to run the Odoo service:

useradd -m -U -r -d /opt/odoo14 -s /bin/bash odoo14

Next, log in with the odoo user and download Odoo version 14 using the following command:

su - odoo14
git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo14/odoo

Next, change the directory to /opt/odoo14 and create a Python virtual environment:

cd /opt/odoo14
python3 -m venv odooenv

Next, activate the virtual environment:

source odooenv/bin/activate

Next, install the required dependencies using the following command:

pip3 install -r odoo/requirements.txt

Next, deactivate the virtual environment with the following command:

deactivate

Next, create an addons directory and exit from the odoo user with the following command:

mkdir /opt/odoo14/odoo-custom-addons
exit

Next, create an Odoo configuration file using the following command:

nano /etc/odoo14.conf

Add the following lines:

[options]
admin_passwd = secure-password
db_host = False
db_port = False
db_user = odoo14
db_password = False
addons_path = /opt/odoo14/odoo/addons, /opt/odoo14/odoo-custom-addons

Save and close the file.

Step 5 – Create an Odoo Service File

Next, you will need to create a service file to manage the Odoo service. You can create it using the following command:

nano /etc/systemd/system/odoo.service

Add the following lines:

[Unit]
Description=Odoo14
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo14
PermissionsStartOnly=true
User=odoo14
Group=odoo14
ExecStart=/opt/odoo14/odooenv/bin/python3 /opt/odoo14/odoo/odoo-bin -c /etc/odoo14.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target

Save the file, then reload the systemd daemon with the following command:

systemctl daemon-reload

Next, start the enable the Odoo service using the following command:

systemctl enable --now odoo

You can check the status of the Odoo service using the following command:

systemctl status odoo

Sample output:

● odoo.service - Odoo14
   Loaded: loaded (/etc/systemd/system/odoo.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2021-09-14 09:52:11 UTC; 6s ago
 Main PID: 37537 (python3)
    Tasks: 4 (limit: 23695)
   Memory: 90.6M
   CGroup: /system.slice/odoo.service
           └─37537 /opt/odoo14/odooenv/bin/python3 /opt/odoo14/odoo/odoo-bin -c /etc/odoo14.conf

Sep 14 09:52:11 RockyLinux8 systemd[1]: Started Odoo14.
Sep 14 09:52:13 RockyLinux8 odoo14[37537]: /opt/odoo14/odooenv/lib64/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycop>
Sep 14 09:52:13 RockyLinux8 odoo14[37537]:   """)
Sep 14 09:52:13 RockyLinux8 odoo14[37537]: 2021-09-14 09:52:13,333 37537 INFO ? odoo: Odoo version 14.0
Sep 14 09:52:13 RockyLinux8 odoo14[37537]: 2021-09-14 09:52:13,334 37537 INFO ? odoo: Using configuration file at /etc/odoo14.conf
Sep 14 09:52:13 RockyLinux8 odoo14[37537]: 2021-09-14 09:52:13,334 37537 INFO ? odoo: addons paths: ['/opt/odoo14/odoo/odoo/addons', '/opt/odo>
Sep 14 09:52:13 RockyLinux8 odoo14[37537]: 2021-09-14 09:52:13,334 37537 INFO ? odoo: database: [email protected]:default
Sep 14 09:52:13 RockyLinux8 odoo14[37537]: 2021-09-14 09:52:13,824 37537 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtml>
Sep 14 09:52:14 RockyLinux8 odoo14[37537]: 2021-09-14 09:52:14,234 37537 INFO ? odoo.service.server: HTTP service (werkzeug) running on RockyL>

Step 6 – Configure Firewall

If you are using firewalls, then you will need to allow Odoo port 8069 through the firewall. You can allow it using the following command:

firewall-cmd --permanent --add-port=8069

Next, reload the firewalld to apply the changes:

firewall-cmd --reload

Step 7 – Access Odoo 14 Web UI

At this point, Odoo 14 is started and listening on port 8069. You can check it using the following command:

ss -antpl | grep 8069

Sample output:

LISTEN 0      128          0.0.0.0:8069      0.0.0.0:*    users:(("python3",pid=37537,fd=3)) 

You can now access it using the URL http://your-server-ip:8069. You should see the following page:
Odoo 14 login page
Provide your master admin password, email, password, and click on the “Create database” button. You will be redirected to the Odoo14 dashboard as shown below:
Odoo 14 dashboard page

Conclusion

That’s it for now. You have successfully installed Odoo 14 on Rocky Linux 8. You can now start managing your business using the Odoo ERP. Get started on dedicated hosting from Atlantic.Net.

Get A Free To Use Cloud VPS

Free Tier Includes:
G3.2GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

How to Install Sails.js Framework with Nginx on Oracle Linux 8
How to Install OTRS on Oracle Linux 8
How to Install and Configure Caddy Web Server with PHP on Oracle Linux 8
How to Install and Use PIP Python Package Manager on Oracle Linux 8
How to Install FTP Server with ProFTPD on Oracle Linux 8

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2008 Lookout Dr,

Dallas, Texas 75044

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources