Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

OpenERP 7 (package openerp ubuntu) on Subdomain

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
ubuntusubdomain
2 Odpowiedzi
5389 Widoki
Awatar
Suresh Bhandari

I have a ubuntu 12.04 precise server where I installed openerp package using apt-get install. No installation problems reported.

My domain is hosted on the server, and I want to use openerp on subdomain, say, erp.example.com.

I created one more virtualhost on the beginning of the apache config file as below (obviously replacing example by my domain):

<VirtualHost *:80>
       ServerName erp.example.com
       DocumentRoot /usr/lib/pymodules/python2.7/openerp/
       <Directory /usr/lib/pymodules/python2.7/openerp/>
                Options FollowSymLinks MultiViews Includes 
                AllowOverride All
                Require all granted
                Order Allow,Deny
                Allow from All
        </Directory>
        ErrorLog /var/log/openerp-server.log
</VirtualHost>

So, here are my scenarios:

1. When I access the IP:8069 I get the default index file from /var/www. I am not sure why this is happening, I expect to recieve openerp default login page.

If it would have worked, I would used :8069 instead of :80.

2. When I use the directory location elsewhere with ownership of www-data:www-data on it, it opens successfully. This clears that the subdomain is working. 

3. When I check the subdomain, I get "Forbidden" error which is okay, as there is no matching directoryindex, as listed in the error log:

[Thu Jun 12 07:04:11.890152 2014] [autoindex:error] [pid 20586] [client 27.34.95.76:50274] AH01276: Cannot serve directory /usr/lib/pymodules/python2.7/openerp/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
 
4. After searching for a few hour, I found that python requires "ExecCGI" option set, with "AddHandler cgi-script .py", so I set the VirtualHost as below, to execute __init__.py:

<VirtualHost *:80>
       ServerName erp.example.com
       DocumentRoot /usr/lib/pymodules/python2.7/openerp/
       DirectoryIndex __init__.py
       <Directory /usr/lib/pymodules/python2.7/openerp/>
                Options FollowSymLinks MultiViews Includes ExecCGI
                AddHandler cgi-script .py
                AllowOverride All
                Require all granted
                Order Allow,Deny
                Allow from All
        </Directory>
        ErrorLog /var/log/openerp-server.log
</VirtualHost>

Now when I access the same subdomain, I recieve "500 Internal Server Error".

The error log is:
[Thu Jun 12 07:15:23.763765 2014] [cgi:error] [pid 20814] [client 27.34.95.76:10411] AH01215: (13)Permission denied: exec of '/usr/lib/pymodules/python2.7/openerp/__init__.py' failed
[Thu Jun 12 07:15:23.765572 2014] [cgi:error] [pid 20814] [client 27.34.95.76:10411] End of script output before headers: __init__.py

With these tasks done, I have a few questions:

1. A similar installation on my local virtual machine is working fine with IP:8069. Did you find anything missing with the installation on this server? Why IP:8069 not working?
2. Is the directory I used with VirtualHost Direcotry correct for OpenERP web?
3. What is the index file that needs to be read/load for OpenERP? (__init__.py is used because of its name)

Thanks in advance,

0
Awatar
Odrzuć
Awatar
Suresh Bhandari
Autor Najlepsza odpowiedź

Hello Antonio,

I checked your referenced website, and Google is there to translate it, so no problem with the language.

I must appreciate your work, but I tried mod_wsgi method as proposed by OpenSourceHolic here [http://opensourceholic.com/2014/05/30/how-to-deploy-odoo-openerp-8-with-mod_wsgi-on-ubuntu-linux-servers/]  by tweaking some parameters, and I got working environment in my test box. Now, I will try it in production environment and let you know.

Thanks for your efforts, though.

Suresh.

0
Awatar
Odrzuć
Awatar
Antonio M. Vigliotti
Najlepsza odpowiedź

Hi,

you should no access to OpenERP directly via http 80 port, instead you should create a proxy entry.

 How hide port 8069 in subdomain.

Sorry, it is in italian but you should copy "Uso Proxy" section as is, replacing erp.server-openerp.it with you real domain.

Please, use proxy carefully. If you open proxy to the world, you could receive a lot of spam traffic, so look at my code carefully.

Hope thie help

 

Antonio Maria Vigliotti

0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
plotly.io.to_image not working within odoo 14 on Ubuntu 20.04 server
ubuntu
Awatar
0
lut 22
4815
Access Odoo from a SubDomain hosted on a different server
subdomain
Awatar
Awatar
1
mar 15
6434
Ubuntu Linux 12.04 64-bit after Installation Internal Server Error Rozwiązane
ubuntu
Awatar
Awatar
Awatar
Awatar
4
gru 23
23435
How to solve Resolution Error
ubuntu
Awatar
Awatar
Awatar
2
mar 15
7958
No success with installing saas-5 on Ubuntu 12.04
ubuntu
Awatar
Awatar
1
mar 15
6454
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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