It’s CRM tool.

Step1. Install repository

yum install epel-release
yum install centos-release-scl

Step2. Install python 3.5

yum install rh-python35

Step3. Install dependent packages

yum install git gcc wget nodejs-less libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel

Step4. Create Odoo user

useradd -m -U -r -d /opt/odoo -s /bin/bash odoo

Step5. Install PostgreSQL repository

yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm -y

Step6. Install PostgreSQL packages

yum install postgresql96 postgresql96-server postgresql96-contrib postgresql96-libs -y

Step7. Initialize database

/usr/pgsql-9.6/bin/postgresql96-setup initdb

Step8. Start and enable service

systemctl start postgresql-9.6.service
systemctl enable postgresql-9.6.service

Step9. Create Database user

su - postgres -c "createuser -s odoo"

Step10. Install Wkhtmltopdf Repository

cd /opt/
wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm

Step11. Install package

yum localinstall wkhtmltox-0.12.5-1.centos7.x86_64.rpm

Step12. Install and configure Odoo 12

su - odoo
git clone https://www.github.com/odoo/odoo --depth 1 --branch 12.0 /opt/odoo/odoo12
scl enable rh-python35 bash
cd /opt/odoo
python3 -m venv odoo12-venv
source odoo12-venv/bin/activate
pip install --upgrade pip
pip3 install wheel
pip3 install -r odoo12/requirements.txt
exit
exit

Step13. Create directory

mkdir /opt/odoo/odoo12-custom-addons

Step14. Change ownership

chown odoo: /opt/odoo/odoo12-custom-addons

Step15. Create odoo file and add below lines

vi /etc/odoo.conf

[options]
; This is the password that allows database operations:
admin_passwd = master_password
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/odoo/odoo12/addons
; You can enable log file with uncommenting the next line
; logfile = /var/log/odoo12/odoo.log
; If you are using custom modules
; addons_path = /opt/odoo/odoo12/addons,/opt/odoo/odoo12-custom-addons

Step16. Create a systemd unit file and add below lines

vi /etc/systemd/system/odoo12.service
 
[Unit]
Description=Odoo12
Requires=postgresql-9.6.service
After=network.target postgresql-9.6.service
 
[Service]
Type=simple
SyslogIdentifier=odoo12
PermissionsStartOnly=true
User=odoo
Group=odoo
ExecStart=/usr/bin/scl enable rh-python35 -- /opt/odoo/odoo12-venv/bin/python3 /opt/odoo/odoo12/odoo-bin -c /etc/odoo.conf
StandardOutput=journal+console
 
[Install]
WantedBy=multi-user.target

Step17. Reload/start/enable service

systemctl daemon-reload
systemctl start odoo12
systemctl status odoo12
systemctl enable odoo12

Step18. Check logs

journalctl -u odoo12

Step19. Access via browser for GUI installation

http://<your_server_IP_address>:8069
http://<localhost>:8069

LEAVE A REPLY

Please enter your comment!
Please enter your name here