How To Install Odoo (ERP) 11.0 On Ubuntu 16.04

1. Connect to SSH and Update the Packages

$ sudo apt-get update
$ sudo apt-get upgrade

2. Download and Install Yenthe Van Ginneken Script

$ cd /home
$ sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/11.0/odoo_install.sh

You can also modify the script if you would like with:

$ sudo nano odoo_install.sh

3. Make Executable File

$ sudo chmod +x odoo_install.sh

4. Install Odoo 11

$ ./odoo_install.sh

5. Set Master Password

Open the configuration file:

$ sudo nano /etc/odoo-server.conf

and change the admin_password field with a strong password:

admin_passwd = StrongPassword

6. Verify Odoo Installation

Restart Odoo for the changes to take effect:

$ sudo /etc/init.d/odoo-server restart

To access your Odoo, open your browser and navigate to http://your-server-IP:8069. Initially, you would be asked to create a new database. Once the database is created, you will get redirected to the admin panel from where you can log in as the admin user.

After successfully logging in you can start using your Odoo 11 and configure it to your needs, install additional modules etc.

Note: If using vagrant, modify the line below in Vagrantfile:

config.vm.network "forwarded_port", guest: 8069, host: 80

7. (Optional) Setting up a Reverse Proxy

In order to access your Odoo application only by using your domain name, without the port number in the URL, we need to set up Apache as a reverse proxy. First, we will need to enable some additional proxy modules for Apache. You can do this with the following commands:

$ a2enmod proxy
$ a2enmod proxy_http

Once this is done, open a new configuration file for your domain with the following command:

$ sudo nano /etc/apache2/sites-available/your_domain.conf

And enter the following:

<VirtualHost *:80>
ServerName your_domain.com
ServerAlias www.your_domain.com

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://your_domain.com:8069/
ProxyPassReverse / http://your_domain.com:8069/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>

Enable “your_domain.conf” configuration in Apache using:

$ sudo ln -s /etc/apache2/sites-available/your_domain.conf /etc/apache2/sites-enabled/your_domain.conf

Remember to replace your ‘your_domain.com’ with your actual domain name. Save the file, close it and restart Apache for the changes to take effect:

$ sudo service apache2 restart

That’s it. If you followed all of the instructions properly you can now access your Odoo 11 using your domain name.

Resources:

https://www.rosehosting.com/blog/install-odoo-11-on-ubuntu-16-04/

https://www.odoo.com/documentation/11.0/setup/install.html

https://github.com/odoo/odoo

How to Speed up Odoo

Install using Nginx (I have not tried this yet)
https://www.howtoforge.com/tutorial/install-odoo-erp-software-on-ubuntu-16-04/

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.