Login to Server via SSH

1. Log in to your server via SSH:
# ssh [email protected]_ip
Before starting, enter the command below to check whether you have the proper version of CentOS installed on your machine:

# cat /etc/redhat-release
which should give you the underneath output:

CentOS Linux release 7.2.1511 (Core)
2. Update the system
Make sure your server is fully up to date:

# yum update
Once this is done, install the EPEL repository:

Install Postgresql & Packages

# yum install -y epel-release
3. Install PostgreSQL
Odoo uses PostgreSQL, therefore let’s install it along with some much-needed dependencies. Execute the below command:

# yum install postgresql-server fontconfig libpng libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi wkhtmltopdf yum-utils
Now initialize the PostgreSQL database:

# postgresql-setup initdb
Enable PostgreSQL to start on boot and start the service using:

# systemctl enable postgresql

# systemctl start postgresql

Install Odoo 10

4. Install Odoo 10
Add the Odoo repository:

# yum-config-manager –add-repo=https://nightly.odoo.com/10.0/nightly/rpm/odoo.repo
Update the package index and install Odoo 10:

# yum update && yum install odoo
Once the installation is completed, enable Odoo to start on boot:

# systemctl enable odoo
Start Odoo:

# systemctl start odoo
Check if Odoo is working:

# ps aux |grep odoo
Odoo’s default master password is set to ‘admin‘. Let’s change this. Open the configuration file for Odoo with your favorite text editor. We are using nano:

# nano /etc/odoo/odoo.conf
Uncomment (delete 😉 the admin_passwd line and set your new master password. Be sure to use a strong password. You can generate one through the command line. Save and close the file. Restart Odoo for the changes to take effect:

# systemctl restart odoo

Apache & Odoo

5. Configure Apache
Last but not least, you need to configure Apache as a reverse proxy to avoid using Odoo’s port in the web browser when accessing Odoo. But first things first, let’s install Apache:

# yum install httpd
Enable it to start on boot, then start Apache:

# systemctl enable httpd

# systemctl start httpd 

# service httpd restart