Skip to Content
Menu
This question has been flagged
2 Replies
3231 Views

hello can you help me to install  odoo14 in redhat 7.9? thanks

Avatar
Discard
Best Answer

Hi aro odoo,

Please follow below steps as 'root' user,.
Hope this will work for you.

Step 1 — Add Odoo user to the system
sudo adduser --system --shell=/bin/bash --home-dir=/opt/odoo -m odoo

Step 2 — Make Configuration Directory and Log Directory
sudo mkdir /etc/odoo && mkdir /var/log/odoo/

Step 3 — Installing Necessary OS Packages
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm -y && sudo yum update -y && yum upgrade -y && sudo yum groupinstall 'Development Tools' -y && sudo yum install python36u python36u-devel python36-pillow python36-lxml npm nodejs libxml2-devel libjpeg-devel libxml2 libxslt libxslt-devel wget libpng libjpeg openssl icu libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi python3-pip python3-setuptools git openldap-devel -y

Step 4 — Installing Node Packages
sudo npm install -g less less-plugin-clean-css -y

Step 5 — PostgreSQL Installation
rpm -Uvh https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm && yum install postgresql10-server postgresql10 -y && /usr/pgsql-10/bin/postgresql-10-setup initdb && systemctl start postgresql-10.service && systemctl enable postgresql-10.service

Step 6 — Creating PostgreSQL user for Odoo
sudo su - postgres -c "createuser -s odoo"

Step 7 — Installing wkhtmltopdf
cd /tmp && wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm && rpm -Uvh wkhtmltox-0.12.5-1.centos7.x86_64.rpm && sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin/ && sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin/

Step 8 — Cloning Odoo 14 From Source Repository
git clone --depth=1 --branch=14.0 https://github.com/odoo/odoo.git /opt/odoo/odoo

Step 9 — Change Ownership of Odoo Directory
sudo chown odoo:odoo /opt/odoo/ -R && sudo chown odoo:odoo /var/log/odoo/ -R

Step 10 — Installing Python Packages Required by Odoo
cd /opt/odoo/odoo && sudo pip3 install -r requirements.txt

Step 11 — Starting Odoo and Creating Config File
sudo su - odoo -c "/opt/odoo/odoo/odoo-bin --addons-path=/opt/odoo/odoo/addons -s --stop-after-init"

Step 12 — Moving Config File To Config Directory and Modify Config Params
sudo mv /opt/odoo/.odoorc /etc/odoo/odoo.conf
sudo sed -i "s,^\(logfile = \).*,\1"/var/log/odoo/odoo-server.log"," /etc/odoo/odoo.conf
sudo sed -i "s,^\(logrotate = \).*,\1"True"," /etc/odoo/odoo.conf
sudo sed -i "s,^\(proxy_mode = \).*,\1"True"," /etc/odoo/odoo.conf
sudo ln -s /opt/odoo/odoo/odoo-bin /usr/bin/odoo

Step 13 — Setting Up Odoo To Start at OS StartUp
sudo cp /opt/odoo/odoo/debian/odoo.service /etc/systemd/system/odoo.service && chmod +x /etc/systemd/system/odoo.service && sudo systemctl daemon-reload && sudo systemctl start odoo && sudo systemctl enable odoo && chkconfig --levels 2345 odoo on

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard

Congrats to your patience and efforts.

Author Best Answer

thank you

Avatar
Discard