How To Install Odoo 12 With PostgreSQL 11 On CentOS 7 - FOSS Linux
How To Install Odoo 12 With PostgreSQL 11 On CentOS 7 - FOSS Linux
Home CentOS
doo is a business so ware that comes packed with CRM, e-commerce, billing, accoun ng, STAY CONNECTED
O project management, manufacturing, warehouse, and inventory apps. The Community
version is an open-source version, while the Enterprise version adds proprietary features and
23,343 LIKE
services to the Community edi on.
381 FOLLOW
At FOSS Linux, we are focused on open-source apps, so in this tutorial, we are going to install and
configure the Oddo community version on CentOS. 16 SUBSCRIBE
1. Update System
yum update
Learn Linux Learn Linux
Update Server
The server will ask to update or no. Type “y” and hit enter. It will get some me to update the system.
Load more
MUST READ
Update Completed
FEATURED
Install Dependencies
Check repositories from the official site and install the Postgres repository for Centos 7 64bit.
Install PostgreSQL 11
Ini alize the database using the below command. It should create a data directory and other
configura on files on the system.
/usr/pgsql-11/bin/postgresql-11-setup initdb
Initialize PGDATA
su - postgres -c "psql"
Check Installation
\password postgres
6. Install Wkhtmltopdf
It is an open-source tool that Odoo uses to make HTML in PDF formats so that it can print PDF reports.
wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7
Download Package
su - odoousr
Now we are going to clone odoo 12 from its repository. We are going to download it to the
“/opt/odoo/odoo12” directory.
cd /opt/odoo
source odoo12-venv/bin/activate
Upgrade pip:
Upgrade Pip
Install the Wheel library, followed by all the required Python modules.
A er installa on is complete, Deac vate the virtual environment and return to the root user.
Return to root
mkdir /opt/odoo/odoo12-custom-addons
vim /etc/odoo12.conf
If vim is not available, you should install it first, or you can use any editor of your choice.
[options]
; This is the password that allows database operations:
admin_passwd = Foss@343fd<?Linux
db_host = False
db_port = False
db_user = odoousr
db_password = False
addons_path = /opt/odoo/odoo12/addons,/opt/odoo/odoo12-custom-addons
logfile = /var/log/odoo12/odoo.log
News Terminal Tuts APPS DISTRO Learn Linux Live USB
Configurations
Save, and exit. Then create a log folder and grant permission to it.
mkdir -p /var/log/odoo12
Now start service and check whether it is working correctly. Change the user and then start command.
su - odoousr
Start Service
Check Odoo12 port is up and running. Then open another terminal and run below command:
Odoo12 Port
Firewall Status
If the service has not started, start it using the following command:
Firewall Rules
12. Browse Applica on
News Terminal Tuts APPS DISTRO Learn Linux Live USB
Start Page
setenforce 0
Create a systemd file and add the following content to the file:
vim /etc/systemd/system/odoo12.service
[Unit]
Description=Odoo12
Requires=postgresql-11.service
After=network.target postgresql-11.service
[Service]
Type=simple
SyslogIdentifier=odoo12
PermissionsStartOnly=true
User=odoousr
Group=odoousr
ExecStart=/usr/bin/scl enable rh-python36 -- /opt/odoo/odoo12-venv/bin/python
StandardOutput=journal+console
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
Check process.
Check status.
tail -f /var/log/odoo12/odoo.log
Odoo DB Creation
Then click “create database” (Here I added demo data too). You should be redirected to the welcome
page.