Introduction
Odoo is one of the booming Open Source ERP business software based on the Python programming language. In this tutorial, We will be installing Odoo 9 on CentOS 7 This new version of Odoo comes with many improvements over its predecessor and many new features such us:
- New WYSIWYG website editor
- Draging and dropping building block.
- New payment gateway integration
- Ebay and Amazon integration
- New contract management
- New accounting
- New marketing apps
- Fully responsive and fast design
- Improved dashboards and reports
- Shops and restaurants management
and many more.
The steps involved are given below:
Ensure server is up to date with all the services installed in it.
yum update -y
Odoo uses a PostgreSQL database, so we have to remove other database server if you have already installed
To remove MariaDB server
yum remove maradb mariadb-server
Odoo 9 needs dependencies to install it so you need to add EPEL repo to your destribution repos.
yum install -y epel-release
Now its time to install database needed by Odoo i.e. PostgreSQL server yum install -y postgresql-server After the installation we have to initialize the database postgresql-setup initdb To start the postgreSQL server and start it at the boot time systemctl start postgresql systemctl enable postgresql To install Odoo we need to create new repo of it use your favorite editor and ope the file: vi /etc/yum.repos.d/odoo.repo Add the following content in the file above: [odoo-nightly] name=Odoo Nightly repository baseurl=http://nightly.odoo.com/9.0/nightly/rpm/ enabled=1 gpgcheck=1 gpgkey=https://nightly.odoo.com/odoo.key Finally, time to install Odoo with the latest verion yum install -y odoo This will install all the dependencies needed. We need to start the odoo and start at the boot time once it has been installed. To start odoo systemctl start odoo To start at the boot time systemctl enable odoo The configuration file of Odoo is /etc/odoo/openerp-server.conf you would want to open with text editor and change the password vi /etc/odoo/openerp-server.conf At line no 3 admin_passwd = n0cadmin I have changed it to n0cadmin as shown above. You would want to replace with some strong password that you can remember. Restart Odoo to take effect systemctl restart odoo You might need to support pdf format for the reports so wkhtmltopdf has to be installed on your server. Since, the version of wkhtmltopdf available in the CentOS repo does not support headers and footers, we will download manually from their official website and install it on our server. First we need to install its dependencies for wkhtmltopdf
yum install fontconfig libpng libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
You have to copy the appropriate rpm file for wkhtmltopdf from its official website as http://wkhtmltopdf.org/downloads.html To manually install
rpm -Uvh http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm
Now, open a web browser and access Odoo 9 at http://yourIPaddress:8069
to create a new PostgreSQL database and set password for the admin user.