{"id":9,"date":"2024-12-28T17:18:36","date_gmt":"2024-12-28T17:18:36","guid":{"rendered":"https:\/\/itchacha.com\/?p=9"},"modified":"2024-12-29T22:29:20","modified_gmt":"2024-12-29T17:29:20","slug":"install-odoo-15-on-ubuntu-20","status":"publish","type":"post","link":"https:\/\/itchacha.com\/index.php\/2024\/12\/28\/install-odoo-15-on-ubuntu-20\/","title":{"rendered":"How to Install Odoo 15 on Ubuntu 20.04: Step-by-Step Guide"},"content":{"rendered":"\n<p>Odoo 15 is a powerful, open-source ERP solution, and installing it on Ubuntu 20.04 can be straightforward if you follow the right steps. This guide will take you through every step of the process, ensuring that your Odoo installation is smooth and optimized for performance.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A clean installation of Ubuntu 20.04.<\/li>\n\n\n\n<li>Sudo privileges on your system.<\/li>\n\n\n\n<li>Basic knowledge of terminal commands.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 1: Update System Packages<\/strong><\/h4>\n\n\n\n<p>Before installing any software, it&#8217;s essential to update the existing system packages. Run the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<br>apt upgrade -y<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 2: Install Required Dependencies<\/strong><\/h4>\n\n\n\n<p>To ensure Odoo runs smoothly, install the necessary libraries and tools:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install git python3-pip build-essential wget python3-dev python3-venv \\<br>python3-wheel libfreetype6-dev libxml2-dev libzip-dev libldap2-dev libsasl2-dev \\<br>python3-setuptools node-less libjpeg-dev zlib1g-dev libpq-dev \\<br>libxslt1-dev libldap2-dev libtiff5-dev libjpeg8-dev libopenjp2-7-dev \\<br>liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev -y<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 3: Create a System User for Odoo<\/strong><\/h4>\n\n\n\n<p>To run Odoo securely, create a dedicated user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>useradd -m -d \/opt\/odoo15 -U -r -s \/bin\/bash odoo15<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 4: Install and Configure PostgreSQL<\/strong><\/h4>\n\n\n\n<p>Odoo uses PostgreSQL as its database. Install and create a user for Odoo:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install postgresql -y<br>sudo su - postgres -c \"createuser -s odoo15\"<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 5: Install Wkhtmltopdf<\/strong><\/h4>\n\n\n\n<p>For PDF reporting, download and install Wkhtmltopdf:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/github.com\/wkhtmltopdf\/wkhtmltopdf\/releases\/download\/0.12.5\/wkhtmltox_0.12.5-1.bionic_amd64.deb<br>sudo apt install .\/wkhtmltox_0.12.5-1.bionic_amd64.deb -y<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 6: Clone the Odoo Repository<\/strong><\/h4>\n\n\n\n<p>Clone the Odoo 15 source code from GitHub:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>su - odoo15<br>git clone https:\/\/www.github.com\/odoo\/odoo --depth 1 --branch 15.0 \/opt\/odoo15\/odoo<br>exit<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 7: Set Up the Python Virtual Environment<\/strong><\/h4>\n\n\n\n<p>Create a virtual environment and install dependencies:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>su - odoo15<br>cd \/opt\/odoo15<br>python3 -m venv odoo-venv<br>source odoo-venv\/bin\/activate<br>pip3 install wheel<br>pip3 install -r odoo\/requirements.txt<br>deactivate<br>mkdir \/opt\/odoo15\/odoo-custom-addons<br>exit<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 8: Configure Odoo<\/strong><\/h4>\n\n\n\n<p>Create an Odoo configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nano \/etc\/odoo15.conf<br><\/code><\/pre>\n\n\n\n<p>Add the following configuration:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>[options]<\/code><br>; This is the password that allows database operations:<code><br>admin_passwd = my_admin_passwd<br>db_host = False<br>db_port = False<br>db_user = odoo15<br>db_password = False<br>addons_path = \/opt\/odoo15\/odoo\/addons,\/opt\/odoo15\/odoo-custom-addons<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 9: Create a Systemd Service File<\/strong><\/h4>\n\n\n\n<p>To run Odoo as a service, create a Systemd service file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nano \/etc\/systemd\/system\/odoo15.service<br><\/code><\/pre>\n\n\n\n<p>Add the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>[Unit]<br>Description=Odoo15<br>Requires=postgresql.service<br>After=network.target postgresql.service<br><br>[Service]<br>Type=simple<br>SyslogIdentifier=odoo15<br>PermissionsStartOnly=true<br>User=odoo15<br>Group=odoo15<br>ExecStart=\/opt\/odoo15\/odoo-venv\/bin\/python3 \/opt\/odoo15\/odoo\/odoo-bin -c \/etc\/odoo15.conf<br>StandardOutput=journal+console<br><br>[Install]<br>WantedBy=multi-user.target<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 10: Start and Enable the Odoo Service<\/strong><\/h4>\n\n\n\n<p>Reload the systemd daemon, enable, and start the Odoo service:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl daemon-reload<br>sudo systemctl enable --now odoo15<br>sudo systemctl status odoo15<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 11: Verify Installation<\/strong><\/h4>\n\n\n\n<p>Check the logs for any errors:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>journalctl -u odoo15<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 12: Access Odoo<\/strong><\/h4>\n\n\n\n<p>Finally, open your browser and navigate to:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>http:\/\/&lt;your_server_ip>:8069<br><\/code><\/pre>\n\n\n\n<p>Replace <code>&lt;your_server_ip&gt;<\/code> with your server&#8217;s actual IP address. You should now see the Odoo 15 interface.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>By following these steps, you can successfully install Odoo 15 on Ubuntu 20.04. If you encounter issues during the installation, refer to the logs for troubleshooting.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Keywords<\/strong>:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install Odoo 15 Ubuntu<\/li>\n\n\n\n<li>Odoo 15 prerequisites<\/li>\n\n\n\n<li>Odoo ERP installation<\/li>\n\n\n\n<li>Wkhtmltopdf Odoo 15<\/li>\n\n\n\n<li>Configure Odoo Ubuntu 20.04<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Odoo 15 is a powerful, open-source ERP solution, and installing it on Ubuntu 20.04 can be straightforward if you follow the right steps. This guide will take you through every step of the process, ensuring that your Odoo installation is smooth and optimized for performance. Prerequisites Step 1: Update System Packages Before installing any software, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,5,20],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-open-source","category-software-applications","category-user-guides-how-tos"],"_links":{"self":[{"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":3,"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itchacha.com\/index.php\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}