Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

OpenERP 7 (package openerp ubuntu) on Subdomain

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
ubuntusubdomain
2 Replies
5388 Tampilan
Avatar
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
Avatar
Buang
Avatar
Suresh Bhandari
Penulis Jawaban Terbai

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
Avatar
Buang
Avatar
Antonio M. Vigliotti
Jawaban Terbai

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
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
plotly.io.to_image not working within odoo 14 on Ubuntu 20.04 server
ubuntu
Avatar
0
Feb 22
4814
Access Odoo from a SubDomain hosted on a different server
subdomain
Avatar
Avatar
1
Mar 15
6431
Ubuntu Linux 12.04 64-bit after Installation Internal Server Error Diselesaikan
ubuntu
Avatar
Avatar
Avatar
Avatar
4
Des 23
23434
How to solve Resolution Error
ubuntu
Avatar
Avatar
Avatar
2
Mar 15
7958
No success with installing saas-5 on Ubuntu 12.04
ubuntu
Avatar
Avatar
1
Mar 15
6454
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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