How to install Odoo 17 for Production in Ubuntu 22 04

Published: 27 September 2024
on channel: SoftIQ Technologies
166
6

How to install Odoo 17 for Production in Ubuntu 22.04

Steps on How to Install Odoo 7 Community on Ubuntu 22.04 for Production

i.) Purchase a Cloud VPS on Ubuntu 22.04
ssh [email protected]

ii.) Update & Upgrade Ubuntu Packages
sudo apt update
sudo apt upgrade

iii.) Install python dependencies and create new user
sudo apt install build-essential wget git python3.11-dev python3.11-venv libfreetype-dev libxml2-dev libzip-dev libsasl2-dev node-less libjpeg-dev zlib1g-dev libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev libcap-dev

iv.) Create new system user for Odoo
/usr/sbin/adduser --system --shell /bin/bash --gecos 'Odoo' --group --home /opt/odoo odoo

v.) Install Postgresql and create new user for postgresql
sudo apt install postgresql
su - postgres -c "createuser -s odoo"

We need to install wkhtml for converting html data to pdf format

sudo apt install wkhtmltopdf

vi.) Download Odoo Files and create python venv
su - odoo
git clone https://www.github.com/odoo/odoo --depth 1 --branch 17.0 odoo

python3.11 -m venv odoo-venv
source odoo-venv/bin/activate

vii.) Install Odoo and configure odoo files
pip3 install wheel setuptools pip --upgrade
pip3 install -r odoo/requirements.txt

Then we create a new directory for the custom odoo addons and log file:
mkdir /opt/odoo/odoo/custom

Exit from user odoo by typing: exit

mkdir /var/log/odoo
sudo touch /var/log/odoo/odoo.log


viii.) Create odoo config file
nano /etc/odoo.conf

[options]
admin_passwd = admin1234
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/odoo/odoo/addons,/opt/odoo/odoo/custom
logfile=/var/log/odoo/odoo.log

ix.) Create odoo service
nano /etc/systemd/system/odoo.service

[Unit]
Description=odoo
Requires=postgresql.service
After=network.target postgresql.service

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

[Install]
WantedBy=multi-user.target

x.) Enable odoo service

systemctl daemon-reload
systemctl enable odoo


sudo systemctl enable odoo
sudo systemctl status odoo


xi.) Open Odoo
http://publicip:8069

Visit https://www.softiqtechnologies.co.ke/ for more info and please subscribe to our videos.

We welcome your comments and suggestions for future videos. Thanks!

Contact us on:
Email: [email protected]

Please buy us a cup of coffee:
Paypal: [email protected]


Watch video How to install Odoo 17 for Production in Ubuntu 22 04 online without registration, duration hours minute second in high quality. This video was added by user SoftIQ Technologies 27 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16 once and liked it people.