How To Install and Configure Odoo14.
Posted By : Aakash Vishwakarma | 20-Jun-2022
Step 1 : Update Server--> First, update your server and then upgrade it. It may ask for password then enter your password
$ sudo apt-get update
$ sudo apt-get upgrade -y
This Commands will update the installed packages.
Step 2 : Create Odoo User in Ubuntu--> Now create a user for Odoo who can access the Odoo and can make changes in it.
$ sudo adduser -system -home=/opt/odoo -group odooUser
This will create a new account to use for Odoo service.
Step 3 : Install PostgreSQL Server -- > As we know that PostgreSQL is required as the database server for Odoo. So we need to install it:
$ sudo apt-get install postgresql -y
Step 4 : Create Odoo user for PostgreSQL -- > For using the postgres sql server we need a user, The below command will add a new role odoo in PostgreSQL server.
$ sudo su - postgres -c "createuser -s odooUser" 2> /dev/null || true
Step 5 : Install Python Dependencies --> The Below code will install all the required packages in system and also create virtual environment.
$ sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev gdebi -y
Step 6 : Install Python PIP Dependencies
$ sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
$ sudo -H pip3 install -r https://raw.githubusercontent.com/odoo/odoo/master/requirements.txt
Step 7 : Install other required packages
$ sudo apt-get install nodejs npm -y
$ sudo npm install -g rtlcss
Step 8 : Install Wkhtmltopdf
$ sudo apt-get install xfonts-75dpi
$ sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
$ sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
$ sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
$ sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
Step 9 : Create Log directory
$ sudo mkdir /var/log/odoo
$ sudo chown odoo:odoo /var/log/odoo
Step 10 :Install Odoo --> We can download the Odoo from the Github repository. So clone it on your system. Using below Command.
$ sudo apt-get install git
$ sudo git clone --depth 1 --branch 14.0 https://www.github.com/odoo/odoo /odoo/odoo-server
Step 11 : Create server config file
$ sudo touch /etc/odoo-server.conf
$ sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"
$ sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"
$ sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"
$ sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"
$ sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf"
$ sudo chown odoo:odoo /etc/odoo-server.conf
$ sudo chmod 640 /etc/odoo-server.conf
Step 12 : Now Start Odoo
$ sudo su - odoo -s /bin/bash
$ cd /odoo/odoo-server
$ ./odoo-bin -c /etc/odoo-server.conf
Now your odoo instance is up and running.
Go to web browser and access your odoo at localhost:8069
Request for Proposal
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Aakash Vishwakarma
Aakash Vishwakarma is a highly skilled backend developer with years of industry experience. He has a comprehensive understanding of the latest technologies and practical experience working with tools and frameworks like Python Django, Django Rest Framework, Odoo14, Odoo15, HTML, CSS, JavaScript, and Jquery, as well as databases. He has contributed to the successful delivery of various client projects, including Pando Mall, Hatrik Marketplace, My Mandi, File Comparison, and TRO Projects. Aakash has a creative mindset and strong analytical skills that enable him to think critically and explore new technologies with ease, making him an asset to any project