There are many ways to install Odoo, you can install Odoo manually by running one by one command, it will help you to understand the Odoo process and when you do not have a fresh OS. In this how-to guide, we will explain to you how to install Odoo 10 in fresh Ubuntu 16.04 LTS in the easiest way.
You can get the Ubuntu server from DigitalOcean or AWS or you can install Ubuntu server in your local machine too.
Once you get the OS you can follow below steps to Install Odoo.
Step 1:
In order to install odoo, 10 make sure you have sudo access or in the system, you logged in as root. if not then run below command.
sudo su
Step 2:
Update the Ubuntu Server. below command will update the latest version of the packages and perform the function of the necessary server upgrade.
sudo apt-get update && sudo apt-get dist-upgrade
Step 3:
We will be using most robust Odoo Install script created by @Yenthe666 from GitHub. Below command will get the script on your /tmp directory and download the script in it.
cd /tmp && sudo wget
https://raw.githubusercontent.com/Yenthe666/InstallScript/10.0/odoo_install.sh
Step 4 *:
This step is for the user who wanted to install the Odoo Enterprise edition, By default this script will install Odoo 10 community edition if you wanted to install community edition skip this step. but to install Odoo 10 Enterprise edition you need to edit the script. We will be using nano editor to edit the file.
sudo nano odoo_install.sh
and find the
IS_ENTERPRISE="False"
and replace it with
IS_ENTERPRISE="True"
after editing the file you can save and close the file using key Ctrl + x . press y and press Enter. this step will make your script odoo enterprise ready.
Step 5:
Now you need to change the odoo_install.sh file executable using below command.
sudo chmod +x odoo_install.sh
Step 6:
Note: if you are installing Odoo Enterprise Edition, this script will ask for your Github credential, make it handy before proceeding to this step.
Now you can run the script right away using the below command.
./odoo_install.sh
The Odoo Install script will automatically do all the process which is required to install the Odoo. and that’s it.
Notes:
Once the Odoo installation is finished odoo will run by default on 8069 port, get your public public ip address and run on you browser with
http://your_public_ip:8069
You will see Odoo database manager, create your first database to get started.
Below is the Standard Odoo installation details.
- Service Name : odoo-server
- Default Port : 8069
- PostgreSQL User : odoo
- Code Location : /odoo
- Default Addons Location : /odoo/odoo-server/addons
- Custom Addons Directory : /odoo/odoo-server/custom/addons
Services:
you can start stop and reload odoo service using below command.
- Start Odoo service : sudo service odoo-server start
- Stop Odoo service : sudo service odoo-server stop