Install Odoo 11 on CentOS 7

Fire bellow commands for install Oddo 11 on CentOs Machine
Fresh OS installation with minimal configuration and 
turn off TUN/TAP if its enable in machine (optional)

Login as root and Run bellow given commands one by one:
yum update
yum install epel-release
yum install centos-release-scl
yum install rh-python35
yum install git gcc wget nodejs-less libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel postgresql-devel
useradd -m -U -r -d /opt/odoo -s /bin/bash odoo
yum install postgresql-server
postgresql-setup initdb
systemctl enable postgresql
systemctl start postgresql

su - postgres -c "createuser -s odoo"
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-centos7-amd64.rpm
yum localinstall wkhtmltox-0.12.1_linux-centos7-amd64.rpm
sudo su - odoo
git clone https://www.github.com/odoo/odoo --depth 1 --branch 11.0 /opt/odoo/odoo11
scl enable rh-python35 bash
cd /opt/odoo
python3 -m venv odoo11-venv
source odoo11-venv/bin/activate
pip3 install -r odoo11/requirements.txt
deactivate && exit
exit
mkdir /opt/odoo/odoo11-custom-addons
chown odoo: /opt/odoo/odoo11-custom-addons
--------------------------------------------------------------------
Next, we need to create a configuration file::       /etc/odoo11.conf
----------------------------------------------------------------------
[options]
; This is the password that allows database operations:
admin_passwd = superadmin_passwd
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/odoo/odoo11/addons
; If you are using custom modules
; addons_path = /opt/odoo/odoo11/addons,/opt/odoo/odoo11-custom-addons
Then, we need to create a system file::  /etc/systemd/system/odoo11.service
---------------------------------------------------------------------------
[Unit]
Description=Odoo11
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo11
PermissionsStartOnly=true
User=odoo
Group=odoo
ExecStart=/usr/bin/scl enable rh-python35 -- /opt/odoo/odoo11-venv/bin/python3 /opt/odoo/odoo11/odoo-bin -c /etc/odoo11.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start odoo11
systemctl enable odoo11
journalctl -u odoo11
Open your browser and type: http://<your_domain_or_IP_address>:8069 Assuming the installation is successful
Install Odoo 11 on CentOS 7 Install Odoo 11 on CentOS 7 Reviewed by Shoutcast Radio Reseller - KMwebSoft.com on September 04, 2018 Rating: 5

No comments:

Powered by Blogger.