{"id":13820,"date":"2019-04-06T09:50:38","date_gmt":"2019-04-06T09:50:38","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13820"},"modified":"2019-04-06T09:50:38","modified_gmt":"2019-04-06T09:50:38","slug":"setting-up-openerp-odoo-9-with-nginx-on-rhel-centos-and-debian-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/06\/setting-up-openerp-odoo-9-with-nginx-on-rhel-centos-and-debian-ubuntu\/","title":{"rendered":"Setting Up OpenERP (Odoo) 9 with Nginx on RHEL\/CentOS and Debian\/Ubuntu"},"content":{"rendered":"<p><strong>Odoo<\/strong>, formerly known as\u00a0<strong>OpenERP<\/strong>, is an\u00a0<strong>Open Source Enterprise Resource Planning<\/strong>\u00a0ERP web based business software written in Python which comes with a suite of web apps designed for every business, such as Website Builders, eCommerce modules, Billing and Accounting, Human Resources, Point of Sale, Customer Relationship Management, Inventory module, Live Chat and many other apps and features.<\/p>\n<p>This tutorial will guide you on you how to install the latest stable version of\u00a0<strong>Odoo<\/strong>\u00a0(version\u00a0<strong>9<\/strong>) on a\u00a0<strong>RHEL\/CentOS\/Fedora<\/strong>\u00a0or\u00a0<strong>Debian\/Ubuntu<\/strong>\u00a0based systems with\u00a0<strong>Nginx<\/strong>\u00a0server to act as a reverse proxy in frontend in order to access the web interface faster, securely and from standard web browsing ports, without the need to burden the users to use browser redirect ports.<\/p>\n<h3>Step 1: Install and Secure PostgreSQL Database<\/h3>\n<p><strong>1.<\/strong>\u00a0Before you start proceeding with\u00a0<strong>Odoo<\/strong>\u00a0installation first assure that your system ships with packages provided by\u00a0<a href=\"https:\/\/www.tecmint.com\/how-to-enable-epel-repository-for-rhel-centos-6-5\/\" target=\"_blank\" rel=\"noopener\">Epel repositories<\/a>\u00a0in order to install the backend\u00a0<strong>PostgreSQL<\/strong>\u00a0database.<\/p>\n<p>Also make sure the server is up-to-date with the latest security packages and patches by issuing the below commands:<\/p>\n<pre>----------- <strong>On RedHat\/CentOS based systems<\/strong> ----------- \r\n# yum update\r\n# yum install -y epel-release\r\n\r\n----------- <strong>On Debian\/Ubuntu based systems<\/strong> ----------- \r\n# apt-get update &amp;&amp; sudo apt-get upgrade # On Debian \r\n<\/pre>\n<p><strong>2.<\/strong>\u00a0Next, go ahead and install\u00a0<strong>PostgreSQL<\/strong>\u00a0database server, which is the default database used by\u00a0<strong>Odoo<\/strong>\u00a0to store information.<\/p>\n<pre>----------- <strong>On RedHat\/CentOS based systems<\/strong> -----------\r\n# yum install postgresql-server\r\n\r\n----------- <strong>On Debian\/Ubuntu based systems<\/strong> -----------\r\n# apt-get install postgresql postgresql-client\r\n<\/pre>\n<p>Initialize\u00a0<strong>PostgreSQL<\/strong>\u00a0database.<\/p>\n<pre># postgresql-setup initdb\t\r\n<\/pre>\n<p>Now finally start the\u00a0<strong>PostgreSQL<\/strong>\u00a0database by issuing the below command:<\/p>\n<pre>----------- <strong>On SystemD systems<\/strong> -----------\r\n# systemctl start postgresql\r\n\r\n----------- <strong>On SysVinit systems<\/strong> -----------\r\n# service postgresql start\r\n<\/pre>\n<p>As an additional step to secure\u00a0<strong>PostgreSQL<\/strong>\u00a0default user, which has a blank password, issue the below command with root privileges in order to change the password:<\/p>\n<pre>sudo -u postgres psql\r\npostgres=# \\password postgres\r\n<\/pre>\n<h3>Step 2: Install Odoo 9 \u2013 OpenERP<\/h3>\n<p><strong>3.<\/strong>\u00a0In order to install\u00a0<strong>Odoo 9<\/strong>\u00a0from official repository, first\u00a0<a href=\"https:\/\/www.tecmint.com\/setup-yum-repository-in-centos-7\/\" target=\"_blank\" rel=\"noopener\">create new yum repository<\/a>\u00a0file for Odoo with the following content:<\/p>\n<h4>On CentOS\/RHEL Systems<\/h4>\n<pre># vi \/etc\/yum.repos.d\/odoo.repo\r\n<\/pre>\n<p>Add the following excerpt to file\u00a0<code>odoo.repo<\/code>.<\/p>\n<pre>[odoo-nightly]\r\nname=Odoo Nightly repository\r\nbaseurl=http:\/\/nightly.odoo.com\/9.0\/nightly\/rpm\/\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=https:\/\/nightly.odoo.com\/odoo.key\r\n<\/pre>\n<h4>On Debian\/Ubuntu Systems<\/h4>\n<p>On\u00a0<strong>Debian\/Ubuntu<\/strong>\u00a0issue the following command to add the\u00a0<strong>Odoo<\/strong>\u00a0repositories:<\/p>\n<pre># wget -O - https:\/\/nightly.odoo.com\/odoo.key | apt-key add -\r\n# echo \"deb http:\/\/nightly.odoo.com\/9.0\/nightly\/deb\/ .\/\" &gt;&gt; \/etc\/apt\/sources.list\r\n<\/pre>\n<p><strong>4.<\/strong>\u00a0Next install\u00a0<strong>Odoo 9<\/strong>\u00a0software from binaries.<\/p>\n<pre>----------- <strong>On RedHat\/CentOS based systems<\/strong> -----------\r\n# yum install odoo\r\n\r\n----------- <strong>On Debian\/Ubuntu based systems<\/strong> -----------\r\n# apt-get update &amp;&amp; sudo apt-get install odoo\r\n<\/pre>\n<p>Next, start it and check daemon status by issuing the below commands:<\/p>\n<pre>----------- <strong>On SystemD systems<\/strong> -----------\r\n# systemctl start odoo\r\n# systemctl status odoo\r\n\r\n----------- <strong>On SysVinit systems<\/strong> -----------\r\n# service odoo start\r\n# service odoo status\r\n<\/pre>\n<p>As an additional step you can verify\u00a0<strong>Odoo<\/strong>\u00a0service listening port by running the\u00a0<strong>ss<\/strong>\u00a0or\u00a0<a href=\"https:\/\/www.tecmint.com\/20-netstat-commands-for-linux-network-management\/\" target=\"_blank\" rel=\"noopener\">netstat<\/a>\u00a0command:<\/p>\n<pre># ss -tulpn\r\nOR\r\n# netstat -tulpn\r\n<\/pre>\n<p>By default, Odoo listens for network connections on port\u00a0<strong>8069\/TCP<\/strong>.<\/p>\n<h3>Step 3: Configure Odoo from Web Interface<\/h3>\n<p><strong>5.<\/strong>\u00a0In order to configure Odoo further fire-up a browser and access Odoo web interface at the following URI:<\/p>\n<pre>http:\/\/host-or-IP-address:8069\/\r\n<\/pre>\n<p><strong>6.<\/strong>\u00a0Next you will be prompted to create a new database for Odoo and set a strong password for admin account.<\/p>\n<div id=\"attachment_19364\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Create-Odoo-Database.png\" rel=\"attachment wp-att-19364\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19364\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Create-Odoo-Database.png\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Create-Odoo-Database.png 911w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Create-Odoo-Database-768x493.png 768w\" alt=\"Create Odoo Database\" width=\"911\" height=\"585\" aria-describedby=\"caption-attachment-19364\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19364\" class=\"wp-caption-text\">Create Odoo Database<\/p>\n<\/div>\n<p><strong>7.<\/strong>\u00a0Once the database has been created you will be redirected to the administration web panel where you can further install applications and configure your ERP. For the moment leave the application as default and log out.<\/p>\n<div id=\"attachment_19365\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Administrative-Web-Panel.png\" rel=\"attachment wp-att-19365\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19365\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Administrative-Web-Panel.png\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Administrative-Web-Panel.png 906w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Administrative-Web-Panel-768x492.png 768w\" alt=\"Odoo Administrative Web Panel\" width=\"906\" height=\"580\" aria-describedby=\"caption-attachment-19365\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19365\" class=\"wp-caption-text\">Odoo Administrative Web Panel<\/p>\n<\/div>\n<p><strong>8.<\/strong>\u00a0Once returned at the login screen, hit on\u00a0<strong>Manage Databases<\/strong>\u00a0link and Set a master password in order to secure Odoo database manager.<\/p>\n<div id=\"attachment_19366\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Manage-Databases.png\" rel=\"attachment wp-att-19366\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19366\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Manage-Databases.png\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Manage-Databases.png 951w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Manage-Databases-768x308.png 768w\" alt=\"Odoo Manage Databases\" width=\"951\" height=\"381\" aria-describedby=\"caption-attachment-19366\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19366\" class=\"wp-caption-text\">Odoo Manage Databases<\/p>\n<\/div>\n<div id=\"attachment_19367\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-Odoo-Database-Manager-Password.png\" rel=\"attachment wp-att-19367\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19367\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-Odoo-Database-Manager-Password.png\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-Odoo-Database-Manager-Password.png 921w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-Odoo-Database-Manager-Password-768x354.png 768w\" alt=\"Set Odoo Database Manager Password\" width=\"921\" height=\"425\" aria-describedby=\"caption-attachment-19367\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19367\" class=\"wp-caption-text\">Set Odoo Database Manager Password<\/p>\n<\/div>\n<div id=\"attachment_19368\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-New-Odoo-Manager-Password.png\" rel=\"attachment wp-att-19368\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19368\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-New-Odoo-Manager-Password.png\" sizes=\"auto, (max-width: 918px) 100vw, 918px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-New-Odoo-Manager-Password.png 918w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Set-New-Odoo-Manager-Password-768x396.png 768w\" alt=\"Set New Odoo Manager Password\" width=\"918\" height=\"473\" aria-describedby=\"caption-attachment-19368\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19368\" class=\"wp-caption-text\">Set New Odoo Manager Password<\/p>\n<\/div>\n<p><strong>9.<\/strong>\u00a0Once you have secured Odoo database manager you can login on your application and start to configure it further with your required apps and settings.<\/p>\n<div id=\"attachment_19369\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Install-Configure-Odoo-Applications.png\" rel=\"attachment wp-att-19369\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19369\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Install-Configure-Odoo-Applications.png\" sizes=\"auto, (max-width: 959px) 100vw, 959px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Install-Configure-Odoo-Applications.png 959w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Install-Configure-Odoo-Applications-768x449.png 768w\" alt=\"Install Configure Odoo Applications\" width=\"959\" height=\"561\" aria-describedby=\"caption-attachment-19369\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19369\" class=\"wp-caption-text\">Install Configure Odoo Applications<\/p>\n<\/div>\n<h3>Step 4: Access Odoo from Nginx Frontend<\/h3>\n<p>You can configure the system so that users can access Odoo web panel via Nginx reverse proxy. This can facilitate the users to navigate Odoo web interface faster, due to some Nginx frontend caching, on standard HTTP ports without the need to manually enter the\u00a0<strong>http<\/strong>\u00a0port\u00a0<strong>8069<\/strong>\u00a0on their browsers.<\/p>\n<p>In order to configure this setting first you need to install and configure\u00a0<strong>Nginx<\/strong>\u00a0on your system by issuing the following steps.<\/p>\n<p><strong>10.<\/strong>\u00a0First install\u00a0<strong>Nginx<\/strong>\u00a0web server with the following command:<\/p>\n<pre>----------- <strong>On RedHat\/CentOS based systems<\/strong> -----------\r\n# yum install nginx\r\n\r\n----------- <strong>On Debian\/Ubuntu based systems<\/strong> -----------\r\n# apt-get install nginx\r\n<\/pre>\n<p><strong>11.<\/strong>\u00a0Next, open Nginx main configuration file with a text editor and insert the following block after the line which specifies Nginx document root location.<\/p>\n<pre>----------- <strong>On RedHat\/CentOS based systems<\/strong> -----------\r\n# vi \/etc\/nginx\/nginx.conf \r\n\r\n----------- <strong>On Debian\/Ubuntu based systems<\/strong> -----------\r\n# nano \/etc\/nginx\/sites-enabled\/default\r\n<\/pre>\n<p>Add the following configuration excerpt to\u00a0<code>nginx.conf<\/code>\u00a0file:<\/p>\n<pre> location \/ {\r\n        proxy_pass http:\/\/127.0.0.1:8069;\r\n        proxy_redirect off;\r\n        proxy_set_header Host $host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Forwarded-Proto $scheme;\r\n<\/pre>\n<p>Also, comment Nginx\u00a0<code>location<\/code>\u00a0statement by placing a\u00a0<strong>#<\/strong>\u00a0in front of the following lines. Use the below screenshot as a guide.<\/p>\n<pre>#location \/ {\r\n                # First attempt to serve request as file, then\r\n                # as directory, then fall back to displaying a 404.\r\n        #       try_files $uri $uri\/ =404;\r\n        #}\r\n<\/pre>\n<div id=\"attachment_19370\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Nginx-for-Odoo-Reverse-Proxy.png\" rel=\"attachment wp-att-19370\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19370\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Nginx-for-Odoo-Reverse-Proxy.png\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Nginx-for-Odoo-Reverse-Proxy.png 990w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Nginx-for-Odoo-Reverse-Proxy-768x588.png 768w\" alt=\"Configure Nginx for Odoo Reverse Proxy\" width=\"990\" height=\"758\" aria-describedby=\"caption-attachment-19370\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19370\" class=\"wp-caption-text\">Configure Nginx for Odoo Reverse Proxy<\/p>\n<\/div>\n<p><strong>12.<\/strong>\u00a0After you\u2019ve made all the above changes, restart\u00a0<strong>Nginx<\/strong>\u00a0daemon but not before you run\u00a0<code>getenforce<\/code>command to check if Selinux in enabled on your machine.<\/p>\n<h4>On CentOS\/RHEL Systems<\/h4>\n<p>In case the policy is set to\u00a0<code>Enforced<\/code>\u00a0disable it by issuing the below commands:<\/p>\n<pre># setenforce 0\r\n# getenforce\r\n<\/pre>\n<p>To completely disable Selinux, open\u00a0<code>\/etc\/selinux\/config<\/code>\u00a0file with a text editor and set the line SELINUX to disabled.<\/p>\n<div id=\"attachment_19371\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Disable-SELinux-in-CentOS.png\" rel=\"attachment wp-att-19371\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19371\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Disable-SELinux-in-CentOS.png\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Disable-SELinux-in-CentOS.png 810w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Disable-SELinux-in-CentOS-768x301.png 768w\" alt=\"Disable SELinux in CentOS and RHEL\" width=\"810\" height=\"317\" aria-describedby=\"caption-attachment-19371\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19371\" class=\"wp-caption-text\">Disable SELinux in CentOS and RHEL<\/p>\n<\/div>\n<p>If you don\u2019t want to completely disable Seliux policy and just want to relax the rules in order to grant Nginx proxy with permissive access to network socket run the following command:<\/p>\n<pre># setsebool httpd_can_network_connect on -P\r\n# getsebool -a | grep httpd \r\n<\/pre>\n<p>Then, restart Nginx daemon to reflect the changes made above:<\/p>\n<pre># systemctl restart nginx\r\nOR\r\n# service nginx restart\r\n<\/pre>\n<p><strong>13.<\/strong>\u00a0This next step is a security optional feature and implies the change of the network socket that\u00a0<strong>Odoo<\/strong>application is listening, changing the binding address from all interfaces (or address) to localhost only.<\/p>\n<p>This change must be done only in conjunction with Nginx reverse proxy due to the fact that binding the application on localhost only implies that Odoo will not be accessible from users inside the LAN or other networks.<\/p>\n<p>In order to active this change, open\u00a0<code>\/etc\/odoo\/openerp-server.conf<\/code>\u00a0file and edit\u00a0<code>xmlrpc_interface<\/code>line to bind on localhost only as suggested on the below screenshot.<\/p>\n<pre>xmlrpc_interface = 127.0.0.1\r\n<\/pre>\n<div id=\"attachment_19372\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Odoo-Interface.png\" rel=\"attachment wp-att-19372\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19372\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Odoo-Interface.png\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Odoo-Interface.png 967w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Configure-Odoo-Interface-768x463.png 768w\" alt=\"Configure Odoo Interface\" width=\"967\" height=\"583\" aria-describedby=\"caption-attachment-19372\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19372\" class=\"wp-caption-text\">Configure Odoo Interface<\/p>\n<\/div>\n<p>In order to reflect changes restart Odoo service by running the below command:<\/p>\n<pre># systemctl restart odoo.service\r\nOR\r\n# service odoo restart\r\n<\/pre>\n<p><strong>14.<\/strong>\u00a0In case your machine has a network defense line provided by the firewall, issue the following commands in order to open firewall ports to outside world for Nginx proxy:<\/p>\n<pre>----------- <strong>On FirewallD based systems<\/strong> -----------\r\n# firewall-cmd --add-service=http --permanent\r\n# firewall-cmd --reload\r\n<\/pre>\n<pre>----------- <strong>On IPTables based systems<\/strong> -----------\r\n# iptables -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT\r\n# iptables -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT\r\n# \/etc\/init.d\/iptables save\r\n<\/pre>\n<pre>----------- <strong>On UFW Firewall systems<\/strong> -----------\r\n# ufw allow http\r\n<\/pre>\n<p><strong>15.<\/strong>\u00a0That\u2019s it! Now you can successfully access your ERP Odoo application by visiting your server IP Address or domain name.<\/p>\n<pre>http:\/\/192.168.1.40\r\nhttp:\/\/domain.tld\r\n<\/pre>\n<div id=\"attachment_19375\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Web-Interface.png\" rel=\"attachment wp-att-19375\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19375\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Web-Interface.png\" sizes=\"auto, (max-width: 1034px) 100vw, 1034px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Web-Interface.png 1034w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/03\/Odoo-Web-Interface-768x468.png 768w\" alt=\"Odoo Web Interface\" width=\"1034\" height=\"630\" aria-describedby=\"caption-attachment-19375\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-19375\" class=\"wp-caption-text\">Odoo Web Interface<\/p>\n<\/div>\n<p><strong>16.<\/strong>\u00a0In order to automatically run the services after a system reboot issue the following command to enable all the daemons system-wide with one-shot.<\/p>\n<pre>------------ <strong>On SystemD Systems<\/strong> ------------  \r\n# systemctl enable postgresql.service \r\n# systemctl enable odoo.service\r\n# systemctl enable nginx.service\r\n<\/pre>\n<pre>------------ <strong>On SysVinit Systems<\/strong> ------------ \r\n\r\n# chkconfig postgresql on\r\n# chkconfig odoo on\r\n# chkconfig nginx on\r\n<\/pre>\n<p><strong>NOTE<\/strong>: For PDF reports, you must manually download and install wkhtmltopdf binary packages for your own distribution by visiting the following link\u00a0<a href=\"https:\/\/www.tecmint.com\/install-wkhtmltopdf-html-page-to-pdf-converter-in-rhel-centos-fedora\/\" target=\"_blank\" rel=\"noopener\">Install wkhtmltopdf to Convert HTML Page to PDF<\/a>.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/install-openerp-odoo-with-nginx-on-centos-and-debian\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Odoo, formerly known as\u00a0OpenERP, is an\u00a0Open Source Enterprise Resource Planning\u00a0ERP web based business software written in Python which comes with a suite of web apps designed for every business, such as Website Builders, eCommerce modules, Billing and Accounting, Human Resources, Point of Sale, Customer Relationship Management, Inventory module, Live Chat and many other apps and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/06\/setting-up-openerp-odoo-9-with-nginx-on-rhel-centos-and-debian-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setting Up OpenERP (Odoo) 9 with Nginx on RHEL\/CentOS and Debian\/Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13820","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13820"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13820\/revisions"}],"predecessor-version":[{"id":13821,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13820\/revisions\/13821"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}