Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Is that possible?
For example, I mean having:
XMLRPC Port: 8069 // Database: Odoo-demo
XMLRPC Port: 8070 // Database: Odoo-test
For information, I ask this because I like to have two "instances" (Odoo V.8) each having the website builder module installed and it seems that adding the "db" parameter in the URL no longer functions as the V7.
Also, I can do two server instances run in parallel but this is not a solution in my case (performance issue).
Hopping someone could help me!?
Yes you can make many odoo instances in the same machine. I think port 8070 is no longer used for netrpc in version 8, so you can use it safely.
"it seems that adding the "db" parameter in the URL no longer functions as the V7
It still exist in version 8, but in different path which is /web.
"I can do two server instances run in parallel but this is not a solution in my case (performance issue)
I think you miss interpret the database connection and xmlrpc. xmlrpc is a protocol for communicating with odoo server, so if you want to have two xmlrpc port, it means you have to make two odoo server.
Hello Everyone, may be it is not quite a setup topicStarter is interested in, but I managed to run two different databases (basically 2 different websites/CRMs) on port 80 on the same physical machine with 2 IPs.
After seaching how to force Odoo 8 rc1 working for 2 separate "instances" on the same Debian machine, I've came up with the folowing idea:
run 2 simultaneous odoo instances / 2 independent Postgres users (security reason) / Apache+mod_proxy
0) install odoo itself. create all the needed Postgress users:
su - postgres
createuser -d -l -P user_A
createuser -d -l -P user_B
1) copy the startup daemon script with: cp -rp /etc/init.d/odoo /etc/init.d/odoo_2
2) point second daemon to separate config file: vim /etc/init.d/odoo2
# diff /etc/init.d/odoo /etc/init.d/odoo_2
3) edit the configuration file for the second instance : vim /etc/odoo/openerp-server_2.conf
# diff /etc/odoo/openerp-server.conf /etc/odoo/openerp-server_2.conf
< admin_passwd = passwd_A
> admin_passwd = passwd_B
< db_user = user_A
< db_password = pass_A
> db_user = user_B
> db_password = pass_B
< xmlrpc_interface = IP_1
> xmlrpc_interface = IP_2
4) now you should be able to start and achieve two separate odoo instances on IP_1:8069 and IP_2:8069 by running:
service start odoo and service start odoo2
5) in order to access them on convinent port 80 it is needed to tune Apache.
sudo a2enmod proxy_http headers rewrite
6) vim /etc/apache2/sites-enabled/my_main
CustomLog /var/log/apache2/httpd-error-fqdn1.log combined
Allow from all
ProxyPass / http://FQDN_1:8069/
ProxyPassReverse / http://FQDN_1:8069/
CustomLog /var/log/apache2/httpd-error-fqdn2.log combined
Allow from all
ProxyPass / http://IP_2:8069/
ProxyPassReverse / http://IP_2:8069/
P.S. I know, that it is not the most elegant solution, but it allows to avoid displaying 'select DB' page, provides some additional security and some redundancy. And you can shutdown one instance when needed. + with the "NameVirtualHost IP_n:80" directive in apache config you can bind additional virtual host to IP_n:80
Useful? Vote! =)
You don't need two instances running. You need to enable either db-filter option in Odoo which when you setup will either match domain name with the db or subdomain with the db. In cases you cannot map domain name with an Odoo DB name, you can use dbfilter_from_header module. And pass the appropriate DB name in the header of Apache or Nginx reverse proxy setup.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/3/14, 9:46 AM|
|Seen: 6932 times|
|Last updated: 6/30/15, 2:17 AM|