跳至內容
Odoo 選單
  • 登入
  • 免費試用
  • 應用程式
    財政
    • 會計
    • 發票
    • 開支報銷
    • 試算表 (BI)
    • 文件管理
    • 電子簽名
    銷售
    • 客戶關係
    • 銷售
    • POS 銷售點管理 - 零售
    • POS 銷售點管理 - 餐廳
    • 訂閱
    • 租賃
    網站
    • 網站製作
    • 電子商務
    • 網誌
    • 討論區
    • 線上客服
    • 網上學習
    供應鏈
    • 庫存
    • 製造管理
    • 產品生命周期
    • 採購
    • 保養維護
    • 品質管理
    人力資源
    • 員工管理
    • 招聘
    • 休假
    • 工作表現評核
    • 內部推薦
    • 車隊管理
    市場推廣
    • 社交媒體推廣
    • 電郵推廣
    • 短訊營銷
    • 活動
    • 自動化推廣
    • 網上調查
    服務
    • 專案管理
    • 工時管理
    • 外勤服務管理
    • 技術支援
    • 工作規劃
    • 預約管理
    生產力
    • 聊天
    • 批核
    • 物聯網
    • VoIP
    • 知識庫
    • WhatsApp
    第三方應用程式 Odoo Studio Odoo 雲端平台
  • 行業
    零售
    • 書店
    • 服裝店
    • 家具店
    • 食品雜貨店
    • 五金店
    • 玩具店
    餐飲及款待
    • 酒吧及酒館
    • 餐廳
    • 快餐
    • 賓館
    • 飲品分銷商
    • 酒店
    房地產
    • 地產代理公司
    • 建築師事務所
    • 建造業
    • 物業管理
    • 園藝
    • 業主聯會
    顧問服務
    • 會計公司
    • Odoo 合作夥伴
    • 市場推廣公司
    • 律師事務所
    • 人才招募
    • 審計及認證
    製造管理
    • 紡織
    • 金屬
    • 家具
    • 食品
    • 啤酒廠
    • 企業禮品
    保健與健身
    • 運動俱樂部
    • 眼鏡店
    • 健身中心
    • 健康從業人員
    • 藥房
    • 髮型屋
    技術行業
    • 雜工
    • IT 硬體與支援
    • 太陽能系統
    • 鞋匠
    • 清潔服務
    • 暖通空調服務
    其他
    • 非牟利組織
    • 環境保護機構
    • 廣告板租賃
    • 攝影服務
    • 自行車租賃
    • 軟體經銷商
    瀏覽所有行業
  • 社群
    學習
    • 教學影片
    • 使用說明
    • 認證
    • 培訓
    • 網誌
    • Podcast
    增強教學效能
    • 教育計劃
    • Scale Up! 商業遊戲
    • 到訪 Odoo
    取得軟件
    • 下載
    • 版本對照表
    • 版本說明
    合作
    • GitHub
    • 討論區
    • 活動
    • 翻譯
    • 成為合作夥伴
    • 合作夥伴服務
    • 登記你的會計服務公司
    獲取服務相關資料
    • 尋找合作夥伴
    • 尋找會計服務
    • 預約顧問諮詢
    • 安裝及推行服務
    • 客戶案例
    • 支援
    • 軟件升級
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    預約示範
  • 定價
  • 技術支援

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

  • 客戶關係
  • e-Commerce
  • 會計
  • 庫存
  • PoS
  • 專案管理
  • MRP
All apps
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
支援

How to install Odoo on virtual server running webmin / virtualmin

訂閱

此帖文有活動時,接收通知

此問題已被標幟
6 回覆
23819 瀏覽次數
頭像
David Myers

Hi all.

I want to test Odoo on my virtual private server. This is a question with my current config. I will then post an answer for how I managed to install and run odoo on this server.

Config:

Debian 7.

Webmin / Virtualmin : this is a web based admin system that eases the creation of domains on your web server, it includes all the config you would desire on a Linux (or other unix based) OS.

my config of choice is the following:

Mail: Dovecot and postfix ~ others are available through webmin, however dovecot is the debian standard, and although postfix is not supplied 'out of the box' it is a well document email server.

Web: Apache ~ I've used apache a lot, I have a reasonable understanding of the config files, however using webmin makes life so much easier.

Database ~ my preference is for MariaDB (a drop in replacemnt for MySQL), however webmin doesn't have a mariaDB option for the moment, so I use MySQL for most uses, and is used by dovecot for the mail user access. Obviously Odoo uses postgreSQL, which has an easy install, and again is supported via the webmin interface. Other database engines are also supported.

I wanted to install Odoo onto a dedicated location on my server, but whenever I navigated to the site

testshop.mySiteName.biz:8069

My browser simply tried to download the install file to my local pc.

 

0
頭像
捨棄
頭像
hanan haggag
最佳答案

hi all,

i used these steps if they may work with you or be helpful, for me they are

1- install odoo on your vps

2- brows to http://your-vps-ip:8069 check if it works

3- install virtualmin

4- go to http://your-vps-ip:8069 check again it doesn't work

5- go to webmin/networking/linux firewall as Robert said and enable port 8069 by same steps he wrote

6- check your http://your-vps-ip:8069 and gladly it does work now

for me i need't to connect virtualmin with odoo

thanks

0
頭像
捨棄
頭像
Daniele Cortellazzi
最佳答案

Hello all,

i'm new with odoo and i want to install this on my server. My question is if webmin can work together with odoo or i need to install this on a virtual server.

Thanks

0
頭像
捨棄
Robert Geleta

Daniele -

if you are running webmin only, you will have to configure webmin to allow odoo's internal webserver to work in addition to webmin's server.

If you are running virtualmin running in addition to webmin (the configuration I am running) my post of 7/16/16 has the installation instructions for that type of configuration.

Robert Geleta

In either case you can do the installation on either a physical server or a virtual server.

頭像
Robert Geleta
最佳答案

I had a similar problem / question.  Here's a summary of what I did to get the two to work on the same machine.

This process assumes a *nix computer with root access.

In the description that follows, "yourdomain.tld" refers to your real public domain,
and "odoo9a.example.com" means "odoo9a.example.com"

  1. Set up your server
    (Ignore this if Virtualmin already installed)

    1. Install OS

    2. Run OS Updates

    3. Install Virtualmin

    4. Note the version of PostgreSQL installed

  2. Create Odoo account

    1. Virtualmin > Create Virtual Server

    2. Name server odoo9a.example.com

      1. "9a" is for version "9", installation "a"
        if attempt "a" has a problem, retry using "b"

      2. "example.com" means "example.com" (not "yourdomain.tld")

    3. Enabled features

      1. setup DNS Zone

      2. Create PostgreSQL database

      3. that's it.  (note the absence of a web server)

  3. Configure account directories for Odoo

    1. cd /home/odoo9a
      mkdir bin.odoo
      mkdir opt
      mkdir etc
      mkdir etc/init.d
  4. Get an Odoo installation script
    I used

    git clone https://github.com/aschenkels-ictstudio/odoo-install-scripts


  5. Modify installation script
    Andre's script is good for installing Odoo on a bare OS server
    it needs modification for installing with Virtualmin

    1. Change the value of the following variables

      OE_USER=odoo9a
      OE_HOME="/home/${OE_USER}/opt/${OE_USER}"
      OE_HOME_EXT="/home/$OE_USER/opt/${OE_USER}/${OE_USER}-server"
    2. Add the following variable

      OE_DIR_ETC="/home/${OE_USER}/etc"


    3. Comment out the following sections of the script

      1. PostgrSQL x.y Settings

      2. Creating the ODOO PostgreSQL User

      3. Creating the ODOO system user

    4. In the section "Configure ODOO"
      change all references
      from " /etc"
      to " /${OE_DIR_ETC}"
      (note the space before the "/")

  6. (optional) create a wrapper script
    I did this to create a log file of the installation to review after the script finishes

    #!/bin/bash 
    #
    # set bash option to show commands being run
    set +x
    #
    # run install script
    sudo bash ./odoo9-install.sh 2>&1 | tee `pwd`/odoo9-install.log
    #
    # done


  7. Run Odoo installation script (either optional wrapper script or main script)

  8. Create symlinks in /etc and /etc/init.d to point to scripts in "/home/odoo9a/etc"

    cd /etc
    ln -s /home/odoo9a/etc/init.d/odoo9a-server /etc/init.d/odoo9a-server
    ln -s /home/odoo9a/etc/odoo9a-server.conf /etc/odoo9a-server.conf


  9. Using Virtualmin, open port 8069

    1. Webmin > Networking > Linux Firewall

      Add Rule

      Rule Comment: Odoo Port

      Action to Take: Accept

      Destination TCP or UDP Port: 8069

      Create

  10. Create a website in your domain to run Odoo

    1. Virtualmin > Create Virtual Server

      Domain Name: odoo9a.yourdomain.com

      Uncheck everything

      Check "Setup website for domain"

      Check "Setup SSL website too"

      Create Server

    2. Virtualmin > Server Configuration > Edit Proxy Website

      Proxying enabled? Yes

      Proxy to URL: http://odoo9a.example.com:8069

  11. Access website from an external machine's browser

    http://odoo9a.yourdomain.com:8069


After this, you can use Virtualmin to back up the Odoo code and database(s) and optionally easily migrate the Virtualmin backup to different hardware.

(The directory "bin.odoo" is a place to put your odoo related scripts.  An example would be a script to do the symlinks to /etc.)

I'll also document this on github.com, user rgeleta, project odoo9-virtualmin (https://github.com/rgeleta/odoo9-virtualmin) (hopefully with better outline numbering), and have an issue queue for any problems I (or anyone else) may identify.

Hope this helps



0
頭像
捨棄
頭像
David Myers
作者 最佳答案

Hi all.

So I finaly managed to install Odoo onto my server. Here below I will create a step through of what I had to do.

If however you are in a hurry. From the vrtualmin section for your virtual server

From the vrtualmin section for your virtual server

Open the 'server configuration' menu item, and down at the bottom you will find webite options. Select this and you get the option for the server.

The second option here is how to run php scripts, you need to select the button that will have them run as the apache user (or whatever web server you have decided to use).

So the long version :

 

Please add comments if you find anything confusing, and I will expand my answer. I assume that you have some knowledge of the various installed systems, and are potentially comfortable with using the command line to access your server directly. This demonstrates a 'power user' but as I say, if you have any questions, please post in the comments.

So you need to navigate to your install of Webmin, which is available at the following address

https:/yourServerName:10000/             you need to change 'yourServerName' to the name of your server or it's IP address.

When you first log into the page you will be presented with a menu (on the left) and a the main body presenting details of your server (available from the System Information link at the bottom of the menu.

First job is to create a new virtual server that corresponds to your website name. You registrar should give you access to an admin panel, where you can point this website address name to your server's IP address, remember to also include things such as mail.yourSiteName.com, ftp.youSiteName.com etc, this will enable you to get mail / ftp access etc into your server.

From the webmin front page, at the very top there is an option 'virtualmin' select this to get the option for virtual server setup.

The first link in the new menu is 'create virtual server' select this to be presented with the virtual server creation page.

Enter the details of the server into the form, most of this section you can leave as the default, however in the section below that is titled 'enabled features' you may decide you want ssl and ftp available for the site.

SSL is definately a requirement if you inted to have online purchasing, and to enable your customers to create user logins to your site so as they can follow their orders etc. Depending on your requirement you may or may not decide to include the other options, you should investigate what they mean and if you required simple search for the items in google. Or on the appropriate webmin / VirtualMin documentation pages.

When webmin creates a virtual server you can tell it where you want the fiiles to be located. I strongle recomend created a 'user' on your system that is used for this purpose. Create this user as the baes of your system.

Note: I recomend that you use the name of your site without the .com or .co.uk part, this will ease things later on, and you will then create 'server aliases' with the required top level domain, and they can all point to the same files on your system. when creating the server simply select the location for the files to not include the .com part of the address. Webmin will do all the rest, creating the user and user space and files that are required.

Everything should now be functioning, if you where to install a web creation tool such as joomla or drupal things will work exactly as expected (don't ask me why Odoo expects this to be different!)

There is only a single thing that needs to be done to enable the various required scripts to run as they should.

Once you have created your server you will need to enable php scripts to be run from the web server (in my case apache) rather then from the virtual server owner.

Open the 'server configuration' menu item, and down at the bottom you will find webite options. Select this and you get the option for the server.

The second option here is how to run php scripts, you need to select the button that will have them run as the apache user (or whatever web server you have decided to use).

You should now be good to run the install scripts.

once I get my 'personal site' online I will create a better set of instructions for using webmin.

David

0
頭像
捨棄
喜歡這則討論?不要只閱讀,加入發表意見吧!

今天就建立帳戶,享受獨家功能,與我們精彩的社群互動!

註冊
社群
  • 教學影片
  • 使用說明
  • 討論區
開源
  • 下載
  • GitHub
  • Runbot 測試環境
  • 翻譯
服務
  • odoo.sh 網頁寄存
  • 支援
  • 升級
  • 自訂功能開發
  • 教育及培訓
  • 尋找會計服務
  • 尋找合作夥伴
  • 成為合作夥伴
關於我們
  • 關於 Odoo 公司
  • 品牌資產
  • 聯絡我們
  • 招聘
  • 活動
  • Podcast
  • 網誌
  • 客戶
  • 法律 • 私隱政策
  • 安全性
الْعَرَبيّة 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 是一套開放源碼的商業管理系統,涵蓋你公司全部的營運需要,包括客戶關係管理(CRM)、電子商務、會計、庫存管理、POS(銷售點管理)、專案管理等應用程式。

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