Professional Documents
Culture Documents
Home
About
Free eBooks
Deals
Donate
Join TecMint
Subscribe
Linux Hosting
News
Linux Distro’s
Interview Questions
Programming
Linux Commands
Linux Tricks
Best Linux Tools
Certifications
Guides
Monitoring Tools
OPEN SOURCE
7
2. Next, go ahead and install PostgreSQL database server, which is the default
database used by Odoo to store information.
----------- On RedHat/CentOS based systems -----------
# yum install postgresql-server
----------- On Debian/Ubuntu based systems -----------
# apt-get install postgresql postgresql-client
# postgresql-setup initdb
Now finally start the PostgreSQL database by issuing the below command:
----------- On SystemD systems -----------
# systemctl start postgresql
----------- On SysVinit systems -----------
# service postgresql start
As an additional step to secure PostgreSQL default user, which has a blank password,
issue the below command with root privileges in order to change the password:
[odoo-nightly]
baseurl=http://nightly.odoo.com/9.0/nightly/rpm/
enabled=1
gpgcheck=1
gpgkey=https://nightly.odoo.com/odoo.key
On Debian/Ubuntu Systems
On Debian/Ubuntu issue the following command to add the Odoo repositories:
Next, start it and check daemon status by issuing the below commands:
As an additional step you can verify Odoo service listening port by running
the ss or netstat command:
# ss -tulpn
OR
# netstat -tulpn
http://host-or-IP-address:8069/
6. Next you will be prompted to create a new database for Odoo and set a strong
password for admin account.
Create Odoo Database
7. Once 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.
8. Once returned at the login screen, hit on Manage Databases link and Set a master
password in order to secure Odoo database manager.
Odoo Manage Databases
Set Odoo Database Manager Password
9. Once you have secured Odoo database manager you can login on your application
and start to configure it further with your required apps and settings.
Install Configure Odoo Applications
11. Next, open Nginx main configuration file with a text editor and insert the
following block after the line which specifies Nginx document root location.
----------- On RedHat/CentOS based systems -----------
# vi /etc/nginx/nginx.conf
----------- On Debian/Ubuntu based systems -----------
# nano /etc/nginx/sites-enabled/default
location / {
proxy_pass http://127.0.0.1:8069;
proxy_redirect off;
#location / {
#}
Configure Nginx for Odoo Reverse Proxy
12. After you’ve made all the above changes, restart Nginx daemon but not before you
run getenforce command to check if Selinux in enabled on your machine.
On CentOS/RHEL Systems
In case the policy is set to Enforced disable it by issuing the below commands:
# setenforce 0
# getenforce
If you don’t 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:
# setsebool httpd_can_network_connect on -P
OR
13. This next step is a security optional feature and implies the change of the network
socket that Odoo application is listening, changing the binding address from all
interfaces (or address) to localhost only.
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.
xmlrpc_interface = 127.0.0.1
Configure Odoo Interface
In order to reflect changes restart Odoo service by running the below command:
OR
15. That’s it! Now you can successfully access your ERP Odoo application by visiting
your server IP Address or domain name.
http://192.168.1.40
http://domain.tld
Odoo Web Interface
16. In order to automatically run the services after a system reboot issue the following
command to enable all the daemons system-wide with one-shot.
------------ On SystemD Systems ------------
# systemctl enable postgresql.service
# systemctl enable odoo.service
# systemctl enable nginx.service
------------ On SysVinit Systems ------------
# chkconfig postgresql on
# chkconfig odoo on
# chkconfig nginx on
NOTE: For PDF reports, you must manually download and install wkhtmltopdf binary
packages for your own distribution by visiting the following link Install wkhtmltopdf to
Convert HTML Page to PDF.
SHARE
62
blog ($3.82/month).
Your name can also be listed here. Got a tip? Submit it here to become
an TecMint author.
NEXT STORY Deal: Become a Hardcore Game Developer with This ‘Pay What You Want’ Course
Bundle
PREVIOUS STORY Deal: Become a IT Service Expert with ITIL Certification Training $69 – Save
99% Off
YOU MAY ALSO LIKE...
27
40
PHPlist – Open Source Email Newsletter Manager (Mass Mailing) Application for Linux
22 JAN, 2014
2
Nikto – A Web Application Vulnerability and CGI Scanner for Web Servers
10 JAN, 2014
7 RESPONSES
Comments7
Pingbacks0
1. Jagan
July 27, 2016 at 9:55 am
It works well on Ubuntu 15.10, whereas from Cent 6/7, it stucks with the python dependency error. Is
there any solution to overcome?
Reply
o Matei Cezar
July 28, 2016 at 1:26 pm
What error throws you? What kind of dependency?
Reply
2. Rajith
July 21, 2016 at 11:28 pm
Doesnt work!
Reply
3. Rahul Raut
July 18, 2016 at 2:48 pm
How to setup odoo on IPv6 port 80? Is it possible to use nginx to do the same?
Reply
o Matei Cezar
July 18, 2016 at 9:00 pm
Why do you want to setup Odoo to listen on IPv6 on localhost? Use nginx frontend to be accessed
from IPv6 with the below configuration: listen [::]:80;
Reply
4. Matei Cezar
June 21, 2016 at 8:07 pm
You would have to create some subdomains (virtual hosts) with nginx and use redirection, but that’s
tricky with odoo. Why not just leave it all to HTTPS?
Reply
5. Hasan Fakih
June 12, 2016 at 7:14 am
Hello and thank you for the great tutorial. In odoo you can create a website and an e-commerce
webpage and those usually are public pages and there’s a login button above that let’s you login to
the erp system.
My question is, how can we make the public pages non HTTPS and when the user want to login, he
gets redirected to HTTPS and stays in HTTPS while using the ERP system? I’m aware that he can
setup another instance of odoo and sync the data but this way some integration features will be lost.
Is there a way to do that on a single odoo instance?
Reply
GOT SOMETHING TO SAY? JOIN THE DISCUSSION.
Comment
Name *
Email *
Website
Notify me of followup comments via e-mail. You can also subscribe without
commenting.
Post Comment
I TecMint :
BEGINNER'S GUIDE FOR LINUX Start learning Linux in minutes
Vi/Vim Editor BEGINNER'S GUIDE Learn vi/vim as a Full Text Editor
Advertise Here
Linux Foundation Certification Exam Study Guide to LFCS and LFCE
How to Add Linux Host to Nagios Monitoring Server Using NRPE Plugin
Nagios 4.2.0 Released – Install on RHEL/CentOS 7.x/6.x/5.x and Fedora 24-19
Install Cacti (Network Monitoring) on RHEL/CentOS 7.x/6.x/5.x and Fedora 24-12
Google Chrome 58 Released – Install on RHEL/CentOS 7/6 and Fedora 25-20
How to Install Ubuntu 16.10/16.04 Alongside With Windows 10 or 8 in Dual-Boot
Ebook: Introducing the RHCSA and RHCE Exam Preparation Guide
Never Miss Any Linux Tutorials, Guides, Tips and Free eBooks
Join Our Community Of 150,000+ Linux Lovers and get a weekly newsletter in your inbox
YES! SIGN ME UP
Contact Us
Advertise on TecMint
Linux Services
Copyright Policy
Privacy Policy
Career
Sponsored Post
Tecmint: Linux Howtos, Tutorials & Guides © 2017. All Rights Reserved.
This work is licensed under a (cc) BY-NC
The material in this site cannot be republished either online or offline, without our permission.
Ebook: Introducing the RHCSA and RHCE Exam Preparation Guide