İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Separate databases on different ports

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
databaseport
8 Cevaplar
22699 Görünümler
Avatar
Bertrand Lagarde

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!?

1
Avatar
Vazgeç
Avatar
Ben Bernard
En İyi Yanıt

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.

2
Avatar
Vazgeç
Bertrand Lagarde
Üretici

You're right, my knowledge is limited about xmlrpc & database connections. Anyway, you answered my question: it is not possible to have multiple ports on a single instance (with many databases). Am I right?

Ben Bernard

Yes

Ivan

Bertrand, just to clarify. The database that an instance have access to depends on the database ID used by that instance. So, you can have multiple instances accessing to the same list of database just by using the same database/PostgreSQL user ID. Now, corollary to that, you cannot "include" one database into multiple "list", this is due to the fact that OpenERP/Odoo obtain the list of database by selecting the databases that is owned by the user ID used and PostgreSQL databases can only have one owner. You can run the same OpenERP/Odoo sources file several times as multiple services with multiple ports (has to be different port) on the same machine. So if you want to run OpenERP/Odoo several times on the same machine using different port accessing the same list of database (using the same PostgreSQL user ID), it is technically possible. However, there are other things that you need to be concerned about such as locking (if those multiple instances are using updating the same table. I would suspect ir_sequence is one of the many tables that will have that problem). So, even if it is technically possible, you have to be very careful when designing who is going to use which port (e.g. one port for update and another for reporting, etc.)

Avatar
Nikolay Kolchenko
En İyi Yanıt

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
16,19c16,19
< NAME=odoo
< DESC=odoo
< CONFIG=/etc/odoo/openerp-server.conf
< LOGFILE=/var/log/odoo/odoo-server.log
---
> NAME=odoo_2
> DESC=odoo_2
> CONFIG=/etc/odoo/openerp-server_2.conf
> LOGFILE=/var/log/odoo/odoo-server_2.log

 

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
3c3
< admin_passwd = passwd_A
---
> admin_passwd = passwd_B
6,7c6,7
< db_user = user_A
< db_password = pass_A
---
> db_user = user_B
> db_password = pass_B
13c13
< 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

<VirtualHost IP_1:80>
    ServerName FQDN_1
    ErrorLog /var/log/apache2/httpd-error-fqdn1.log
    CustomLog /var/log/apache2/httpd-error-fqdn1.log combined
    <Proxy IP_1>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyRequests Off
    ProxyPass / http://FQDN_1:8069/
    ProxyPassReverse / http://FQDN_1:8069/
    ProxyVia On
    LogLevel warn
</VirtualHost>

<VirtualHost IP_2:80>
    ServerName FQDN_2
    ErrorLog /var/log/apache2/httpd-error-fqdn2.log
    CustomLog /var/log/apache2/httpd-error-fqdn2.log combined
    <Proxy IP_2>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyRequests Off
    ProxyPass / http://IP_2:8069/
    ProxyPassReverse / http://IP_2:8069/
    ProxyVia On
    LogLevel warn
</VirtualHost>

 

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! =)

 

 

 

 

 

1
Avatar
Vazgeç
Ashish Singh

Nice Blog Nikolay

Avatar
Sudo Bash
En İyi Yanıt

I am also looking for the same solution with windows server 2012 dedicated server since Hostgator would not support nginx only IIS, how would one apply this?. Thanks. 

0
Avatar
Vazgeç
Avatar
Erdem Uney
En İyi Yanıt

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.

0
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Database disappeared from list after activating Google Oauth for administrator
database
Avatar
0
Tem 25
2320
Setup Odoo with specific database
database
Avatar
Avatar
2
Kas 24
8576
database locked
database
Avatar
Avatar
Avatar
2
Eki 24
4920
my data base is locked
database
Avatar
Avatar
2
Ağu 24
2737
How do i provide one database to one client if i have multiple databases in one server? Çözüldü
database
Avatar
Avatar
Avatar
Avatar
3
Tem 24
9285
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now