
Introduction
Odoo (formerly known as OpenERP) is a comprehensive suite of enterprise management applications designed for businesses of all sizes. It includes modules for billing, accounting, manufacturing, purchasing, warehouse management, and project management.
This tutorial is tailored for the "CentOS 7" template and is intended for use with self-managed virtual private servers.
0. Preliminary Requirements
Ensure you have the following before starting:
- "CentOS 7" template installed on your server
- Server software updated (
yum update -y
)
- "Nano" text editor installed (
yum install nano -y
)
1. Server Preparation
Before installing PostgreSQL and Odoo, you need to prepare the server:
yum remove httpd sendmail bind -y
yum install epel-release -y
yum update -y
2. PostgreSQL Installation
With the server prepared, you can now install PostgreSQL:
yum install postgresql-server -y
Initialize the PostgreSQL database with these commands:
su postgres
/usr/bin/initdb -E UTF8 -D /var/lib/pgsql/data -U postgres
exit
Start PostgreSQL and enable it to start on server reboot:
systemctl start postgresql
systemctl enable postgresql
3. Odoo Installation
With PostgreSQL in place, you can now install Odoo. First, add the Odoo repository. Create a new repo file and add the following content:
nano /etc/yum.repos.d/odoo.repo
Add the following lines to the file:
Install Odoo:
yum install odoo -y
Once installed, edit the openerp-server.conf
file to set your master password:
nano /etc/odoo/openerp-server.conf
Find and modify the line:
admin_passwd = Your_password
Start Odoo and enable it to start on boot:
systemctl start odoo
Completing the Setup
Open your browser and navigate to:
http://Your_VPS_IP_address:8069
Follow the on-screen instructions to complete the Odoo setup.

That's it! Your Odoo system is now ready for use.
For more information and documentation, visit Odoo Documentation.