Disable IPv6 – CentOS 7
Disabling IPv6 on CentOS 7 is pretty straight forward. You should make sure you aren't…
I’ve found that if you insist on installing Odoo on CentOS, like I do, doing it on CentOS 7 is the easiest and quickest way of going about it.
If you have a fresh CentOS 7 minimal install that’s great, if not, you’ll need to uninstall mariadb and mariadb-server before you can proceed.
NOTE: Make sure you’re not using mariadb for any other application before you uninstall it.
To uninstall issue the following at shell:
We will not install the Epel repo:
Now we install the PostgreSQL Server:
Since this is the first time installing PostgreSQL Server, we’ll need to initialize the database:
The result should be something like:
To start the PostgreSQL Server:
To add PostgreSQL Server to the startup:
Add the Odoo Repo to the server at /etc/yum.repos.d/odoo.repo
Now we’re ready to install Odoo, issue the following to get started:
To start Oddo:
To add Odoo to startup:
Edit Odoo’s master configuration file, location: /etc/odoo/openerp-server.conf and set a Master password,
To print PDF reports you’ll need to install wkhtmltopdf, and to install wkhtmltopdf you’ll need to install the following dependencies
You’ll now need to download the appropriate version of wkhtmltopdf from wkhtmltopdf.org/downloads.html. In this case it was:
You’ll now need to allow the port Odoo’s webserver operates at
Restart the firewall:
Note: I’ve allowed the port to be access by anyone on the internet, as long as this server is connected to the internet. You’ll need to play with the firewall if you want to restrict access to the port.
Hit the server in your browser to bring up the initial setup page:
Enter the Master Password you set earlier, a db name and a password which would be the admin password for the database you’re creating.
And that’s that, you’re done!
Note: I usually keep SELINUX disabled, so if you experience any kind of issue following the installation steps above, try disabling SELINUX. Make sure to reboot afterwards.