<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Odoo Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/odoo/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/odoo/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Wed, 26 Nov 2025 14:04:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Odoo Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/odoo/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Configure Odoo with Nginx as Reverse Proxy on Debian 13</title>
		<link>https://www.linuxtuto.com/how-to-configure-odoo-with-nginx-as-reverse-proxy-on-debian-13/</link>
					<comments>https://www.linuxtuto.com/how-to-configure-odoo-with-nginx-as-reverse-proxy-on-debian-13/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Wed, 26 Nov 2025 14:01:45 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Odoo]]></category>
		<category><![CDATA[Proxy]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=2056</guid>

					<description><![CDATA[<p>If you are planning to deploy Odoo in a production environment, configuring it behind a reverse proxy like Nginx is highly recommended. Odoo’s built-in server...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-configure-odoo-with-nginx-as-reverse-proxy-on-debian-13/">How to Configure Odoo with Nginx as Reverse Proxy on Debian 13</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are planning to deploy Odoo in a production environment, configuring it behind a reverse proxy like Nginx is highly recommended. Odoo’s built-in server is sufficient for development but not optimized for handling SSL encryption, load balancing, URL routing, and performance tuning. Nginx acts as a powerful reverse proxy that enhances reliability, security, and performance, making your Odoo installation production-ready.</p>
<p>In this tutorial, you will learn step-by-step how to configure Odoo with Nginx as a reverse proxy on Debian 13, including SSL setup.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 13</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx Web Server</span></h2>
<p>To install Nginx web server, run the following command:</p>
<div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="Cloud server hosting" data-google-vignette="false" data-google-interstitial="false">Cloud server hosting</div>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the Nginx service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Configure Odoo for Reverse Proxy</span></h2>
<p>Make sure that Odoo is configured to work behind a proxy. In the Odoo configuration file (<code>/etc/odoo.conf</code>), you need to set the <strong>proxy_mode</strong> parameter to True:</p>
<pre><code>proxy_mode = True
</code></pre>
<p>After making the changes, it’s important to restart the Odoo service to ensure the changes take effect:</p>
<pre><code># systemctl restart odoo</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Configure Nginx for Odoo</span></h2>
<p>Now we set up the Nginx configuration to route traffic to Odoo.</p>
<p>Create a new configuration file:</p>
<pre><code># /etc/nginx/conf.d/odoo.conf</code></pre>
<p>Paste the following configuration (replace erp.example.com with your real domain):</p>
<pre><code>upstream odoo {
server 127.0.0.1:8069;
}

upstream odoo-chat {
server 127.0.0.1:8072;
}

server {
listen 80;
server_name erp.example.com;

access_log /var/log/nginx/odoo_access.log;
error_log /var/log/nginx/odoo_error.log;

proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;

proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

location / {
proxy_pass http://odoo;
}

location /websocket {
proxy_pass http://odoo-chat;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}</code></pre>
<p>Save the file and Exit.</p>
<p>Check Nginx syntax:</p>
<pre><code># /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
</code></pre>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<p>You can now open your Odoo at:</p>
<pre><code>http://erp.your-domain.com</code></pre>
<p>However, this is still not secure because we are using HTTP.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Install free Let’s Encrypt SSL certificate (Optional)</span></h2>
<p>First you need to install the Certbot client which is used to create Let’s Encrypt certificates:</p>
<pre><code># apt install certbot python3-certbot-nginx</code></pre>
<p>Then to get the SSL certificate using the Certbot, type the following command:</p>
<pre><code># certbot --nginx -d erp.your-domain.com</code></pre>
<p>If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:</p>
<pre><code>Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for erp.your-domain.com

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/erp.your-domain.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/erp.your-domain.com/privkey.pem
This certificate expires on 2026-02-16.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

Deploying certificate
Successfully deployed certificate for erp.your-domain.com to /etc/nginx/conf.d/odoo.conf
Congratulations! You have successfully enabled HTTPS on https://erp.your-domain.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</code></pre>
<p>Now, you have successfully installed SSL on your website.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Access Odoo server</span></h2>
<p>Open your web browser and type the URL <strong>https://erp.your-domain.com</strong>.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-2059" src="https://www.linuxtuto.com/wp-content/uploads/2025/11/odoo_19.webp" alt="Odoo 19" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2025/11/odoo_19.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2025/11/odoo_19-300x138.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2025/11/odoo_19-768x354.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2025/11/odoo_19-897x414.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2025/11/odoo_19-684x315.webp 684w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>You should now see your Odoo login page loading securely via Nginx.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Configuring <strong data-start="4473" data-end="4523">Nginx as a reverse proxy for Odoo</strong> enhances security, performance, and scalability.</p>
<p>It allows you to run Odoo in a professional production environment with HTTPS, HTTP/2, caching, and better resource usage.</p>
<p>If you have any questions please leave a comment below.</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-configure-odoo-with-nginx-as-reverse-proxy-on-debian-13/">How to Configure Odoo with Nginx as Reverse Proxy on Debian 13</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-configure-odoo-with-nginx-as-reverse-proxy-on-debian-13/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2056</post-id>	</item>
		<item>
		<title>How to Install Odoo 18 on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 03 Oct 2024 12:00:03 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Odoo]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1808</guid>

					<description><![CDATA[<p>Odoo 18 is an open-source suite of business applications that provides a complete ERP (Enterprise Resource Planning) solution for organizations of various sizes. It offers...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/">How to Install Odoo 18 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Odoo 18 is an open-source suite of business applications that provides a complete ERP (Enterprise Resource Planning) solution for organizations of various sizes. It offers a wide range of integrated tools and modules to help manage all aspects of a business, such as finance, sales, inventory, human resources, and more.</p>
<p>The open-source community edition is free, making it accessible to small businesses and developers. The enterprise edition, on the other hand, offers additional features, services, and support.</p>
<p>Odoo is highly customizable. Businesses can tailor modules to meet their specific needs, create custom workflows, or build entirely new apps using Odoo’s development framework.</p>
<p>In summary, Odoo is a versatile business management software that can streamline operations and provide real-time insights, making it an ideal solution for companies looking to optimize their business processes.</p>
<p>In this tutorial, we will show you how to install Odoo 18 on a Ubuntu 24.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">S</span><span class="has-inline-color has-vivid-purple-color">tep 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu 24.04</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Then install all the required packages for the Odoo 18 setup on the Ubuntu 24.04 OS.</p>
<pre><code># apt install python3-minimal python3-dev python3-pip python3-venv python3-setuptools build-essential libzip-dev libxslt1-dev libldap2-dev python3-wheel libsasl2-dev node-less libjpeg-dev xfonts-utils libpq-dev libffi-dev fontconfig git wget</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: </span><span class="has-inline-color has-vivid-purple-color">Install PostgreSQL </span></h2>
<p>Odoo uses PostgreSQL as a database backend, so you will need to install PostgreSQL on your server.</p>
<p>Follow these steps to install and configure PostgreSQL server:</p>
<pre><code># apt-get install postgresql</code></pre>
<p>After the successful installation, start the PostgreSQL service and enable it to start after the system reboot:</p>
<pre><code># systemctl start postgresql
# systemctl enable postgresql</code></pre>
<p>Verify that is active and running on your server:</p>
<pre><code># systemctl status postgresql</code></pre>
<pre><strong>Output</strong>
<code>● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; preset: enabled)
     Active: active (exited)
   Main PID: 19754 (code=exited, status=0/SUCCESS)
        CPU: 2ms</code></pre>
<p>Now create an Odoo user in PostgreSQL:</p>
<pre><code># su - postgres -c "createuser -s odoo" </code></pre>
<p>This will add a new role <strong>odoo</strong> in the PostgreSQL server.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Node.js</span></h2>
<p>To install Node.js and npm on your Ubuntu 24.04 OS use the following command:</p>
<pre><code># apt install nodejs npm</code></pre>
<p>Also, install the following module to enable RTL support:</p>
<pre><code># npm install -g rtlcss</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Installation of wkhtmltopdf</span></h2>
<p>To generate PDF reports successfully, wkhtmltopdf is necessary. PDF reports are a crucial component of any organization.</p>
<p>First install the xfonts dependency before installing wkhtmltopdf:</p>
<pre><code># apt-get install xfonts-75dpi xfonts-base</code></pre>
<p>Now download and install <a href="https://wkhtmltopdf.org/downloads.html">wkhtmltopdf</a> using the following commands:</p>
<pre><code># wget  http://security.ubuntu.com/ubuntu/pool/universe/w/wkhtmltopdf/wkhtmltopdf_0.12.6-2build2_amd64.deb
# dpkg -i wkhtmltopdf_0.12.6-2build2_amd64.deb</code></pre>
<p>Verify if the wkhtmltopdf installation is successful by checking the version:</p>
<pre><code># wkhtmltopdf --version
wkhtmltopdf 0.12.6</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create an Odoo User</span></h2>
<p>Create a new system user for managing the Odoo processes on the Odoo server.</p>
<pre><code># adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Install Odoo 18</span></h2>
<p>Switch to the user that you have created before to avoid encountering issues related to access rights.</p>
<pre><code># su - odoo</code></pre>
<p>Now, download the Odoo 17 source code from the git repository and install it:</p>
<pre><code># git clone https://www.github.com/odoo/odoo --depth 1 --branch 18.0 /opt/odoo/odoo</code></pre>
<p>Next run the following command to generate a new Python virtual environment.</p>
<pre><code># python3 -m venv odoo-env</code></pre>
<p>Activate the virtual environment with the following command:</p>
<pre><code># source odoo-env/bin/activate</code></pre>
<p>Then install the required Python packages:</p>
<pre><code>(odoo-env) $ pip3 install wheel
(odoo-env) $ pip3 install -r odoo/requirements.txt</code></pre>
<p>After completing the process of installing all requirements to deactivate the virtual environment run the following command:</p>
<pre><code>(odoo-env) $ deactivate</code></pre>
<p>Execute the following command to create a directory for custom addons:</p>
<pre><code># mkdir /opt/odoo/custom-addons</code></pre>
<p>Next exit from the Odoo user:</p>
<pre><code># exit</code></pre>
<p>Create an <code>Odoo</code> log directory and provide it the required write permissions.</p>
<pre><code># mkdir /var/log/odoo18
# chown odoo:odoo /var/log/odoo18</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Create Odoo Configuration File</span></h2>
<p>Create the <code>Odoo</code> configuration file.</p>
<pre><code># nano /etc/odoo.conf</code></pre>
<p>Then paste the following configuration into it.</p>
<pre><code>[options]
admin_passwd = Strong_admin_Password
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo18/odoo-server.log
addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom-addons
xmlrpc_port = 8069</code></pre>
<p>Remember to update the value of the &#8220;<strong><code>Strong_admin_Password</code></strong>&#8221; key above with a more secure password.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Create a Systemd Service File</span></h2>
<p>Create a systemd service file to manage the <code>Odoo</code> service:</p>
<pre><code># nano /etc/systemd/system/odoo.service</code></pre>
<p>Paste the following content into the <code>odoo.service</code> file:</p>
<pre><code>[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-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target</code></pre>
<p>Reload system daemon and start the service:</p>
<pre><code># systemctl daemon-reload
# systemctl start odoo
# systemctl enable odoo</code></pre>
<p>To confirm everything is working normally, check the status of service:</p>
<pre><code># systemctl status odoo</code></pre>
<p>Output:</p>
<pre><code>● odoo.service - Odoo
     Loaded: loaded (/etc/systemd/system/odoo.service; enabled; preset: enabled)
     Active: active (running)
   Main PID: 21764 (python3)
      Tasks: 4 (limit: 2218)
     Memory: 73.3M (peak: 73.5M)
        CPU: 973ms
     CGroup: /system.slice/odoo.service
             └─21764 /opt/odoo/odoo-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 9: Access Odoo 18 server</span></h2>
<p>Open your web browser and type <strong>http://your-IP-address:8069</strong> and you will see the following screen:</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1811" src="https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-900x393.webp" alt="Odoo 18" width="900" height="393" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-900x393.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-300x131.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-768x335.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-1536x670.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-1222x533.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-897x392.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-684x299.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18.webp 1913w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Community version of Odoo 18 on Ubuntu 24.04.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://www.odoo.com/documentation/18.0/" target="_blank" rel="noopener">the official Odoo 18 documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/">How to Install Odoo 18 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1808</post-id>	</item>
		<item>
		<title>How to Configure Odoo with Apache as Reverse Proxy on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 22 Jan 2024 15:30:05 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[Odoo]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1672</guid>

					<description><![CDATA[<p>Odoo is an open-source suite of integrated business applications that includes various modules for different business needs. Odoo is developed using the Python programming language...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/">How to Configure Odoo with Apache as Reverse Proxy on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Odoo is an open-source suite of integrated business applications that includes various modules for different business needs. Odoo is developed using the Python programming language and follows a modular architecture, allowing users to select and deploy the specific modules that suit their business requirements.</p>
<p>The system is highly customizable, and it covers a wide range of business functions. It provides a comprehensive set of tools to manage various aspects of a business, from sales and finance to human resources and inventory management.</p>
<p>In this tutorial, we will show you how to configure Odoo with Apache 2 as Reverse Proxy on Debian 12 OS.</p>
<p>If you do not have Odoo installed on your server you can follow our tutorial <a href="https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/">how to install Odoo 17 on Debian 12</a>.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>You can verify the status of the Apache service using the <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code>● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 1127 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 1131 (apache2)
      Tasks: 6 (limit: 2273)
     Memory: 18.4M
        CPU: 86ms
     CGroup: /system.slice/apache2.service
             ├─1131 /usr/sbin/apache2 -k start
             ├─1132 /usr/sbin/apache2 -k start
             ├─1133 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Enable Apache Modules</span></h2>
<p>Next run the following commands to enable all necessary modules:</p>
<pre><code># /usr/sbin/a2enmod rewrite
# /usr/sbin/a2enmod proxy
# /usr/sbin/a2enmod proxy_http
# /usr/sbin/a2enmod proxy_html
# /usr/sbin/a2enmod headers</code></pre>
<p>Then restart the Apache web server:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Configure Apache for Odoo</span></h2>
<p>Run the commands below to create a new VirtualHost file called <kbd>odoo</kbd> in the <strong>/etc/apache2/sites-available/</strong> directory.</p>
<pre><code># nano /etc/apache2/sites-available/odoo.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code> &lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/html/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    ProxyPass / http://127.0.0.1:8069/
    ProxyPassReverse / http://127.0.0.1:8069/&gt; 

    ErrorLog /var/log/apache2/your-domain.com-error_log
    CustomLog /var/log/apache2/your-domain.com-access_log common

 &lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong>your-domain.com</strong> with the domain name of your server.</p>
<p>Then save and exit the configuration file.</p>
<p>To enable this site run the following command:</p>
<pre><code># ln -s /etc/apache2/sites-available/odoo.conf /etc/apache2/sites-enabled/odoo.conf</code></pre>
<p>To implement the changes, you need to restart the Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Install free Let’s Encrypt SSL certificate (Optional)</span></h2>
<p>First you need to install the Certbot client which is used to <a href="https://www.linuxtuto.com/how-to-install-apache-with-lets-encrypt-on-ubuntu-22-04/">create Let’s Encrypt certificates</a>:</p>
<pre><code># apt install certbot python3-certbot-apache</code></pre>
<p>Then to get the SSL certificate using the Certbot, type the following command:</p>
<pre><code># certbot --apache -d your-domain.com -d www.your-domain.com</code></pre>
<p>If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:</p>
<pre><code>IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/your-domain.com.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/your-domain.com/privkey.pem
   Your cert will expire on 2024-03-02. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le</code></pre>
<p>Now, you have successfully installed SSL on your website.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6:  Odoo Proxy Configuration</span></h2>
<p>Make sure that Odoo is configured to work behind a proxy. In the Odoo configuration file (<code>/etc/odoo.conf</code>), you need to set the <strong>proxy_mode</strong> parameter to True:</p>
<pre><code>proxy_mode = True
</code></pre>
<p>After making the changes, it’s important to restart the Odoo service to ensure the changes take effect:</p>
<pre><code># systemctl restart odoo
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Odoo server</span></h2>
<p>Open your web browser and type the URL <strong>https://your-domain.com</strong>. You should see the following page:</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1674" src="https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-900x415.webp" alt="Odoo 17" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-900x415.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-300x138.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-1536x709.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-1222x564.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-897x414.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17.webp 1915w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations! You have successfully configured <code>Odoo</code> with Apache 2 as Reverse Proxy on your Debian 12 OS.</p>
<p>For additional information, you can check <a href="https://www.odoo.com/documentation/" target="_blank" rel="noopener">the official Odoo documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<div id="bshare-social" class="baby-sideshare share-content after-content icon show">
<div class="share_hide_show content_hide_show"></div>
</div>
<p>The post <a href="https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/">How to Configure Odoo with Apache as Reverse Proxy on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1672</post-id>	</item>
		<item>
		<title>How to Install Odoo 17 on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 13 Nov 2023 17:33:31 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Odoo]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1599</guid>

					<description><![CDATA[<p>Odoo is an open-source suite of business management software applications that encompasses a wide range of business needs, including customer relationship management (CRM), sales, project...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/">How to Install Odoo 17 on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Odoo is an open-source suite of business management software applications that encompasses a wide range of business needs, including customer relationship management (CRM), sales, project management, inventory management, manufacturing, financial management, and more.</p>
<p>It is widely used by businesses of various sizes and across different industries to streamline their operations, improve productivity, and manage their business processes more efficiently. Its flexibility, scalability, and cost-effectiveness make it a popular choice for organizations seeking comprehensive business management solutions.</p>
<p>In this tutorial, we will show you how to install Odoo 17 on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Debian 12</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Then install all the required packages for the Odoo 17 setup on the Debian 12 OS.</p>
<pre><code># apt install python3 python3-dev python3-pip python3-venv python3-setuptools build-essential libzip-dev libxslt1-dev libldap2-dev python3-wheel libsasl2-dev node-less libjpeg-dev xfonts-75dpi xfonts-base libpq-dev libffi-dev fontconfig git wget nodejs npm</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install PostgreSQL </span></h2>
<p>Odoo uses PostgreSQL as a database backend, so you will need to <a href="https://www.linuxtuto.com/how-to-install-postgresql-15-on-debian-11/">install PostgreSQL</a> on your server.</p>
<p>You can run the following command to install the PostgreSQL server:</p>
<pre><code># apt-get install postgresql-15</code></pre>
<p>After the successful installation, start the PostgreSQL service and enable it to start after the system reboot:</p>
<pre><code># systemctl start postgresql
# systemctl enable postgresql</code></pre>
<p>Verify that is active and running on your server:</p>
<pre><code># systemctl status postgresql</code></pre>
<pre><strong>Output</strong>
<code>● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; preset: enabled)
     Active: active (exited)
   Main PID: 18666 (code=exited, status=0/SUCCESS)
        CPU: 2ms</code></pre>
<p>Now create an Odoo user in PostgreSQL:</p>
<pre><code># su - postgres -c "createuser -s odoo" </code></pre>
<p>This will add a new role <strong>odoo</strong> in the PostgreSQL server.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Node.js</span></h2>
<p>To install Node.js and npm on your Debian OS use the following command:</p>
<pre><code># apt install nodejs npm</code></pre>
<p>Also, install the following module to enable RTL support:</p>
<pre><code># npm install -g rtlcss</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Installation of wkhtmltox</span></h2>
<p>To generate PDF reports successfully, wkhtmltopdf is necessary. PDF reports are a crucial component of any organization.</p>
<p>First install the xfonts dependency before installing wkhtmltopdf:</p>
<pre><code># apt-get install xfonts-75dpi xfonts-base</code></pre>
<p>Now download and install wkhtmltopdf using the following commands:</p>
<pre><code># wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb
# dpkg -i wkhtmltox_0.12.6.1-3.bookworm_amd64.deb</code></pre>
<p>Verify if the wkhtmltopdf installation is successful by checking the version:</p>
<pre><code># wkhtmltopdf --version
wkhtmltopdf 0.12.6.1 (with patched qt)</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create an Odoo User</span></h2>
<p>Create a new system user for managing the Odoo processes on the Odoo server.</p>
<pre><code># adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Install Odoo</span></h2>
<p>Switch to the user that you have created before to avoid encountering issues related to access rights.</p>
<pre><code># su - odoo</code></pre>
<p>Now, download the Odoo 17 source code from the git repository and install it:</p>
<pre><code># git clone https://www.github.com/odoo/odoo --depth 1 --branch 17.0 /opt/odoo/odoo</code></pre>
<p>Next run the following command to generate a new Python virtual environment.</p>
<pre><code># python3 -m venv odoo-env</code></pre>
<p>Activate the virtual environment with the following command:</p>
<pre><code># source odoo-env/bin/activate</code></pre>
<p>Then install the required Python packages:</p>
<pre><code>(odoo-env) $ pip3 install wheel
(odoo-env) $ pip3 install -r odoo/requirements.txt</code></pre>
<p>After completing the process of installing all requirements to deactivate the virtual environment run the following command:</p>
<pre><code>(odoo-env) $ deactivate</code></pre>
<p>Execute the following command to create a directory for custom addons:</p>
<pre><code># mkdir /opt/odoo/custom-addons</code></pre>
<p>Next exit from the Odoo user:</p>
<pre><code># exit</code></pre>
<p>Create an <code>Odoo</code> log directory and provide it the required write permissions.</p>
<pre><code># mkdir /var/log/odoo
# chown odoo:odoo /var/log/odoo</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Create Odoo Configuration File</span></h2>
<p>Create the <code>Odoo</code> configuration file.</p>
<pre><code># nano /etc/odoo.conf</code></pre>
<p>Then paste the following configuration into it.</p>
<pre><code>[options]
admin_passwd = Strong_admin_Password
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom-addons
xmlrpc_port = 8069</code></pre>
<p>Remember to update the value of the &#8220;<strong><code>Strong_admin_Password</code></strong>&#8221; key above with a more secure password.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Create a Systemd Service File</span></h2>
<p>Create a systemd service file to manage the <code>Odoo</code> service:</p>
<pre><code># nano /etc/systemd/system/odoo.service</code></pre>
<p>Paste the following content into the <code>odoo.service</code> file:</p>
<pre><code>[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-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target</code></pre>
<p>Reload system daemon and start the service:</p>
<pre><code># systemctl daemon-reload
# systemctl start odoo
# systemctl enable odoo</code></pre>
<p>To confirm everything is working normally, check the status of service:</p>
<pre><code># systemctl status odoo</code></pre>
<p>Output:</p>
<pre><code>● odoo.service - Odoo
     Loaded: loaded (/etc/systemd/system/odoo.service; enabled; preset: enabled)
     Active: active (running)
   Main PID: 2270 (python3)
      Tasks: 4 (limit: 2273)
     Memory: 110.0M
        CPU: 1.622s
     CGroup: /system.slice/odoo.service
             └─2270 /opt/odoo/odoo-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 9: Access Odoo server</span></h2>
<p>Open your web browser and type <strong>http://your-IP-address:8069</strong> and you will see the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1612" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-900x444.webp" alt="Odoo 17 Create Database Page" width="900" height="444" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-900x444.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-300x148.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-768x379.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-1536x758.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-1222x603.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-897x443.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-684x338.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database.webp 1914w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Fill the required information and then click the <strong>“Create Database”</strong> button to complete the installation.</p>
<p>After successfully creating the <code>Odoo</code> database, you will be redirected to the login page.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1613" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-900x389.webp" alt="Odoo 17 login page" width="900" height="389" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-900x389.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-300x130.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-768x332.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-1536x664.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-1222x529.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-897x388.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-684x296.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page.webp 1914w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Enter your login credentials and you will be redirected to apps page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1615" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-900x512.webp" alt="Odoo Dashboard" width="900" height="512" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-900x512.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-768x437.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-1536x874.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-1222x695.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-897x510.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-684x389.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard.webp 1899w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Odoo 17 on Debian 12. For additional information, you can check <a href="https://www.odoo.com/documentation/17.0/" target="_blank" rel="noopener">the official Odoo 17 documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/">How to Install Odoo 17 on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1599</post-id>	</item>
	</channel>
</rss>
