Installing Odoo on Linux VPS/Cloud
Installing an Odoo server requires root access to the server provided with our private plans (VPS/Cloud).
Below are some generalized recommendations based on the number of websites you wish to host with the application:
-
For a 5 user site = 2 CPU server and 2 GB Ram
-
For 20 user site = 4 CPU server and 8 GB Ram
-
For 100+ user site = 2 x 8 CPU servers with 32 GB Ram
- Log in to your server as user root.
ssh root@IP
- At the very beginning it is best to start a screen session by executing the following command:
screen -U -S odoo
and make sure that all services installed on your server are up to date:
yum -y update
- Odoo uses a PostgreSQL database, so we have to remove MariaDBserver if it is installed:
yum remove mariadb mariadb-server
- In order to install all Odoo 9 dependencies the EPEL repository must be added to the distribution’s repositories:
yum install -y epel-release
- Install PostgreSQL server:
yum install -y postgresql-server
Once it is installed and started for the first time, we have to initialize the PostgreSQL database:
postgresql-setup initdb
Start the PostgreSQL server and enable it to start at boot time
systemctl start postgresqlsystemctl enable postgresql
PS: If you have Cpanel installed, the PostgreSQL needs to be installed using the script below:
/usr/local/cpanel/scripts/installpostgres
- Create new yum repository for Odoo:
nano /etc/yum.repos.d/odoo.repo
With the following content:
[odoo-nightly]name=Odoo Nightly repositorybaseurl=http://nightly.odoo.com/9.0/nightly/rpm/enabled=1gpgcheck=1gpgkey=https://nightly.odoo.com/odoo.key
and finally install Odoo 9:
yum install -y odoo
- This will install the latest version of Odoo and all its dependencies.
After the installation is completed, start Odoo and enable it to start at boot times:
systemctl start odoosystemctl enable odoo
- Open Odoo’s configuration file and uncomment the ‘admin\_passwd’ line to set the admin master password:
vim /etc/odoo/openerp-server.confadmin\_passwd = YourPassword
Don’t forget to replace ‘YourPassword’ with an actual strong password.
- Restart Odoo for the changes to take effect:
systemctl restart odoo
Updated 4 months ago