Odoo is a suite of open-source business applications that covers everything from CRM to accounting. This guide will walk you through installing Odoo on AlmaLinux, Rocky Linux, Debian, and Ubuntu.
Prerequisites:
Before starting the installation, ensure the following:
- A server running AlmaLinux, Rocky Linux, Debian, or Ubuntu.
- Root or sudo access to your server.
- Python 3, PostgreSQL, and other dependencies installed.
- A domain or subdomain pointing to your server.
Step 1: Update the System
Make sure your system is up-to-date with the latest packages.
- For Ubuntu/Debian:
- For AlmaLinux/Rocky Linux:
Step 2: Install Required Software
Odoo requires Python 3, PostgreSQL, and several Python dependencies. Let's install them.
- Install Python 3 and required dependencies:
- For Ubuntu/Debian:
- For AlmaLinux/Rocky Linux:
- Install PostgreSQL (Odoo uses PostgreSQL as its database backend):
- For Ubuntu/Debian:
- For AlmaLinux/Rocky Linux:
Step 3: Create a PostgreSQL User for Odoo
- Start PostgreSQL and log into the PostgreSQL shell:
- Create a PostgreSQL user and database for Odoo:
Step 4: Install Odoo
- Install Odoo from the official GitHub repository:
- Install Python dependencies for Odoo using
pip
:
Step 5: Configure Odoo
- Create a configuration file for Odoo:
- the Odoo configuration file:
Add the following content, updating with your own information:
- Create a directory for Odoo logs:
Step 6: Start Odoo
- Run Odoo to check that everything is working:
- Access Odoo in your web browser at
http://yourdomain.com:8069
.
You will be prompted to create a new database for your Odoo instance. You can log in using the admin password you set in the odoo.conf
file.
Step 7: Set Up Odoo to Start on Boot
- Create a systemd service file for Odoo:
- Add the following content:
- Enable and start the Odoo service:
Step 8: Secure Odoo with SSL (Optional)
For production environments, it is recommended to secure Odoo with SSL. You can use Let’s Encrypt to obtain a free SSL certificate.
- Install Certbot:
- For Ubuntu/Debian:
- For AlmaLinux/Rocky Linux:
- Obtain an SSL certificate:
- Restart NGINX to apply the SSL configuration.
Step 9: Access Odoo in the Browser
Open your browser and visit http://yourdomain.com:8069
or https://yourdomain.com
if you set up SSL. You should now be able to access the Odoo web interface and configure your company, apps, and users.
Conclusion
You have successfully installed Odoo on your AlmaLinux, Rocky Linux, Debian, or Ubuntu server. You can now manage your business processes with Odoo's wide range of applications.