How to Install Odoo 14 on CentOS 8: A Step-by-Step Guide
Odoo 14 is an excellent alternative to explore if you’re seeking an all-inclusive business management software. It provides an array of capabilities, including sales, CRM, accounting, e-commerce, and project management, in an one location. But, you must install Odoo 14 on your server before you can use it. In this tutorial, we will demonstrate how to install Odoo 14 on CentOS 8.
Before we begin, make sure you have the following:
- A VPS or dedicated server running CentOS 8
- Root access to the server
- A domain name pointed to your server’s IP address (optional)
Step 1: Update your CentOS 8 server
The first thing you should do is update your CentOS 8 server to ensure that you have the latest software packages and security updates. To do this, connect to your server via SSH and run the following commands:
sudo dnf update sudo reboot
Once the server has rebooted, you can proceed to the next step.
Step 2: Install PostgreSQL
Odoo 14 requires a PostgreSQL database to store its data. To install PostgreSQL, run the following command:
sudo dnf install postgresql-server
After the installation is complete, initialize the database and enable PostgreSQL to start at boot time:
sudo postgresql-setup --initdb sudo systemctl enable --now postgresql
You should also create a PostgreSQL user for Odoo 14:
sudo -u postgres createuser --createdb --username postgres --no-createrole --pwprompt odoo
Enter a password for the
odoo user when prompted.
Step 3: Install the required dependencies
Odoo 14 requires several dependencies to function properly. Install them using the following command:
sudo dnf install git gcc python3-devel libxml2-devel libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel
Step 4: Install wkhtmltopdf
Odoo 14 requires the wkhtmltopdf tool to generate PDF reports. To install it, run the following commands:
cd ~ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.6/wkhtmltox-0.12.6-1.centos8.x86_64.rpm sudo dnf localinstall wkhtmltox-0.12.6-1.centos8.x86_64.rpm
Step 5: Install Odoo 14
Now that you have installed all the required dependencies, you can proceed to install Odoo 14. First, clone the Odoo 14 source code from GitHub:
cd ~ git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 --single-branch
Next, create a new configuration file for Odoo:
sudo mkdir /etc/odoo sudo nano /
Copy and paste the following contents into the configuration file:
[options] ; This is the password that you created for the PostgreSQL user earlier admin_password = YOUR_POSTGRESQL_PASSWORD_HERE ; Set the XML-RPC port to 8069 (the default) xmlrpc_port = 8069 ; Set the database name db_name = odoo ; Set the database user (the same as the PostgreSQL user) db_user = odoo ; Set the database password (the same as the PostgreSQL user's password) db_password = YOUR_POSTGRESQL_PASSWORD_HERE ; Set the server timezone (optional) ; server_timezone = Europe/Brussels
YOUR_POSTGRESQL_PASSWORD_HERE with the password you created for the PostgreSQL user earlier.
Save and exit the file.
Next, create a new systemd unit file for Odoo:
sudo nano /etc/systemd/system/odoo.service
Copy and paste the following contents into the file:
[Unit] Description=Odoo 14 Requires=postgresql.service After=network.target postgresql.service [Service] Type=simple User=root Group=root ExecStart=/usr/bin/python3 /home/YOUR_USERNAME/odoo/odoo-bin -c /etc/odoo/odoo.conf WorkingDirectory=/home/YOUR_USERNAME/odoo Restart=always [Install] WantedBy=multi-user.target
YOUR_USERNAME with your username.
Save and exit the file.
Finally, start and enable the Odoo service:
sudo systemctl start odoo sudo systemctl enable odoo
Step 6: Configure firewall
If you’re using a firewall on your server, you need to allow incoming traffic on port 8069 (the default Odoo port). To do this, run the following command:
sudo firewall-cmd --zone=public --add-port=8069/tcp --permanent sudo firewall-cmd --reload
Step 7: Access Odoo 14
Now that Odoo 14 is installed and running, you can access it by opening a web browser and navigating to
http://your-server-ip:8069. If you have a domain name pointed to your server’s IP address, you can use that instead.
When you first access Odoo 14, you will be prompted to create a new database. Follow the on-screen instructions to set up your database and start using Odoo 14.
Installing Odoo 14 on CentOS 8 is a straightforward process that can be completed in just a few steps. By following this guide, you should now have a working installation of Odoo 14 on your server. With its wide range of features and powerful capabilities, Odoo 14 can help streamline your business operations and improve your productivity.
Benefits of Using Odoo 14
Odoo 14 is a powerful and versatile business management software that can help businesses of all sizes streamline their operations and improve their productivity. Here are some of the key benefits of using Odoo 14:
1. Modular design
Odoo 14 has a modular design, which means that you can easily customize the software to meet your specific business needs. Whether you need to manage your inventory, track your sales, or handle your accounting, Odoo 14 has a module that can help.
Odoo 14 is open-source software, which means that you can download, use, and modify the software for free. This makes Odoo 14 a cost-effective solution for businesses that want to streamline their operations without breaking the bank.
Odoo 14 is a cloud-based software, which means that you can access the software from anywhere with an internet connection. This makes Odoo 14 a great option for businesses that have remote workers or that need to access their business data while on the go.
4. User-friendly interface
Odoo 14 has a user-friendly interface that is easy to navigate, even for users who are not tech-savvy. This makes Odoo 14 a great option for businesses that want to streamline their operations without spending a lot of time training their employees on how to use the software.
5. Integration with other software
Odoo 14 can integrate with a wide range of other software, including popular accounting software like QuickBooks and Xero. This makes it easy to sync your business data across different platforms and streamline your operations even further.
Installing Odoo 14 on CentOS 8 is a great way to streamline your business operations and improve your productivity. By following the steps outlined in this guide, you can quickly and easily set up a working installation of Odoo 14 on your server.
With its modular design, open-source architecture, cloud-based infrastructure, user-friendly interface, and integration capabilities, Odoo 14 is a powerful tool that can help businesses of all sizes succeed.
So what are you waiting for? Install Odoo 14 on CentOS 8 today and start taking your business to the next level!