Odoo 11 How to install

From WikiMLT
Revision as of 10:19, 3 August 2022 by Spas (talk | contribs)

Odoo pre­tends to be all-in-one man­age­ment soft­ware. Here is pre­sent­ed how to in­stall and set­up it to work over HTTPS.

In­stall Odoo

  • Here are pre­sent­ed two al­ter­na­tive meth­ods of Odos's in­stal­la­tion – from the GitHib project and from the repos­i­to­ry.

A. In­stall Odoo from the repos­i­to­ry.

This should be the prefer­able way. In­stall the de­pen­den­cies, add the repos­i­to­ry and its key, up­date the sys­tem and in­stall the pack­age:

sudo apt update && sudo apt install postgresql
wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add -
echo "deb http://nightly.odoo.com/11.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list
sudo apt update && sudo apt upgrade && sudo apt install odoo

With this con­fig­u­ra­tion you can con­trol the ser­vice by the com­mands:

sudo systemctl status odoo.service
sudo systemctl restart odoo.service
sudo systemctl start odoo.service
sudo systemctl stop odoo.service

The main con­fig­u­ra­tion file is: /etc/odoo/odoo.conf.

B. In­stall Odoo from the GitHib project.

  • If you've fol­lowed 1.A skip this step – go to 2.

This sec­tion us­es Yen­the V.G's in­stal­la­tion scrip. I found this ap­proach in the ar­ti­cle: In­stall Odoo 11 on Ubun­tu 16.04…. Down­load odoo_install.sh:

wget https://raw.githubusercontent.com/Yenthe666/InstallScript/11.0/odoo_install.sh

Ed­it odoo_install.sh and mod­i­fy the pa­ra­me­ters, un­der the sec­tion #fixed pa­ra­me­ters:

  • OE_USER will be the user­name for the sys­tem user, the de­fault one is odoo.
  • By de­fault the script will cre­ate user's home di­rec­to­ry /<odoo user>. You could leave the fol­low­ing val­ues as de­fault, but I would pre­fer /home/<odoo user>:
OE_HOME="/home/$OE_USER"
OE_HOME_EXT="$OE_HOME/${OE_USER}-server"
  • INSTALL_WKHTMLTOPDF set to False if you do not want to in­stall Wkhtml­topdf, if you want to in­stall it you should set it to True.
  • OE_PORT is the port where Odoo should run on, for ex­am­ple 8069.
  • OE_VERSION is the Odoo ver­sion to in­stall, for ex­am­ple 11.0 for Odoo V11.
  • IS_ENTERPRISE will in­stall the En­ter­prise ver­sion on top of 11.0 if you set it to True, set it to False if you want the com­mu­ni­ty ver­sion of Odoo 11.
  • OE_SUPERADMIN is the mas­ter pass­word for this Odoo in­stal­la­tion. The de­fault pass is ad­min.

Make odoo_install.sh ex­e­cutable and ex­e­cute it as root:

chmod +x odoo_install.sh && sudo ./odoo_install.sh

You could con­trol the ap­pli­ca­tion by the com­mands:

sudo /etc/init.d/odoo-server restart
sudo /etc/init.d/odoo-server start
sudo /etc/init.d/odoo-server stop

The con­fig­u­ra­tion file is: /etc/odoo-server.conf.

Pro­ceed the in­stal­la­tion of ODOO through the web in­ter­face

Figure 1. Steps of Odoo 11 in­stal­la­tion through the web in­ter­face. Use a sup­port­ed web brows­er. Click on the im­age to see the an­i­ma­tion.

Re­verse proxy

In or­der to ac­cess your Odoo ap­pli­ca­tion on­ly by us­ing your do­main name, with­out the port num­ber in the URL, or through HTTPS, you need to set up a re­verse proxy:

Apache: Re­verse Proxy Guide