- Set up server (Ignore if Virtualmin already installed)
- Install OS
- Run OS Updates
- Install Virtualmin
- Note the version of PostgreSQL installed
- Create Odoo account “odoo9a.example.com”
- Virtualmin > Create Virtual Server
- Enabled Features
- Setup DNS Zone
- Create PostgreSQL database
- Enabled Features
- Notes on the account name
- odoo9a is for “odoo”, version “9”, installation “a”
odoo9 will enable differentiation between multiple versions of odoo installed - “a” suffix for your first attempt,
then “b” for your second if something does not go right - “example.com” means use “example.com”
not yourdomain.com
the reason will become clearer below
- odoo9a is for “odoo”, version “9”, installation “a”
- Virtualmin > Create Virtual Server
- Configure account directories for Odoo
cd /home/odoo9a mkdir bin.odoo mkdir opt mkdir etc mkdir etc/init.d
- Get an Odoo installation script
git clone https://github.com/aschenkels-ictstudio/odoo-install-scripts
is a good place to start
- Modify installation scripts
Andre’s script is good for installing Odoo on a bare OS server
it needs modification for installing with Virtualmin- 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”
- Update references to /etc
- Add the following variables
OE_DIR_ETC=”/home/$OE_USER/etc” - In the section “Configure ODOO” change all references
from ” /etc”
to ” $OE_DIR_ETC”
Note both strings begin with a space
- Add the following variables
- Comment out the following sections of the script
(these have already done by Virtualmin)- PostgreSQL x.y Settings
- Creating the ODOO PostgreSQL User
- Create ODOO system user
- Change the value of the following variables
- (optional) Create a wrapper script
#/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
- Run Odoo installation script (either optional wrapper script or main script)
- Create links in /etc and /etc/init.d to point to scripts in /home/odoo9/etc
as rootcd /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
- Start Odoo
as rootservice odoo9a-server start
- Using Virtualmin, open port 8069
- Webmin > Networking > Linux Firewall
- Add Rule
- Rule Comment: Odoo Port
- Action to Take: Accept
- Destination TCP or UDP Port: 8069
- Create
- Create a website in your domain to run Odoo
- Virtualmin > Create Virtual Server
- Domain Name: odoo9a.yourdomain.com
- Uncheck everything
- Check “Setup website for domain”
- Check “Setup SSL website too”
- Create Server
- Virtualmin > Server Configuration > Edit Proxy Website
- Proxying enabled? Yes
- Proxy to URL: http://odoo9a.example.com:8069
NOTE: here’s where the “example.com” is actually used.
- Virtualmin > Create Virtual Server
- Access website from an external machine’s browser
http://odoo9a.yourdomain.com:8069
## end ##