This question has been flagged
1 Reply
3959 Views

Hi there,

we would like to install multiple instances of Odoo on a clean CentOS server. There are multiple divisions/locations of our company and each requires its own odoo instance.  

Has anyone been able to successfully do this?  If so is there a guide?

Ideally we would like to see the following:

http://xxx.siteone.com --> odoo 1 instance

http://yyy .siteone.com --> odoo 2 instance

http://xxx.siteTwo.com --> odoo 3 instance

etc...

Is this possible?  If it is are there any good guides you are aware of? I've tried searching with no success.


Avatar
Discard
Best Answer

Hi Marty,

Ofcourse this is possible! The basic idea behind this is to install multiple Odoo instances on multiple locations. I've made an installation script that does all of this and which works fully automated. See: https://github.com/Yenthe666/InstallScript/

An example based on your example:
- http://xxx.siteone.com would be named 'xxxsiteone' on this line of the script: https://github.com/Yenthe666/InstallScript/blob/9.0/odoo_install.sh#L19
- http://yyy.siteone.com would be named 'yyysiteone' on this line of the script: https://github.com/Yenthe666/InstallScript/blob/9.0/odoo_install.sh#L19
- http://xxx.siteTwo.com would be named 'sitetwo' on this line of the script: https://github.com/Yenthe666/InstallScript/blob/9.0/odoo_install.sh#L19

This would install and configure three different Odoo code bases. You can even choose which version of Odoo you would like on this line: https://github.com/Yenthe666/InstallScript/blob/9.0/odoo_install.sh#L29 The different Odoo's would be under /yyysiteone/yyysiteone-server, yyysiteone/yyysiteone-server and under /sitetwo/sitetwo-server.
The only thing that is not included in my script is db-filter and forwarding to a correct URL.There are some topics about this on the help forum too though! The main idea is to redirect your internal Odoo to the webhosting with pointers. You could do this with Nginx and your hosting provider for example.

Yenthe

Avatar
Discard

Do you have a script for CentOS? The above script only works in Ubuntu.