Installing Odoo 11 (enterprise) on Ubuntu

In this tutorial I will learn you how to install Odoo 11 community or enterprise on Ubuntu 16.04. The script that you will use is based on the code from André Schenkels but has been updated, upgraded and improved. Do notice that if you want to install the enterprise version that you will need to be an official partner or that you need to have bought the enterprise subscription from Odoo. Otherwise you will have no access to the Github repository for the enterprise code!

1. Downloading the script

The first step is to download my script from Github and to add the code in a new .sh file on your Ubuntu machine, wherever you’d like this.
For example right under /home. Open up an Ubuntu terminal and cd to the directory where you’d like to keep the script and then create the file:

If you’re curious about how the whole code looks and works you can find it on my Github account.
Now open up the file and edit the parameters to your liking:

There are some things you can configure/change to your likings at the top of the script. You can choose if you wish to install Wkhtmltopdf or not, which version you’d like, where the location is and most importantly what the master admin password is.
Tip: always modify this for every Odoo you install!
If you want the enterprise version of V11 you should change the line IS_ENTERPRISE to true:

If you want the community version you can just continue and keep the IS_ENTERPRISE key on “False” (which is the case by default):

2. Making the Odoo installation file executable

The next step is to make this file executable. After you’ve made it executable you can execute it and everything will be installed automatically.
do this with the following command:

3.Running the script

Now that the code is in your file and the file is executable you simply have to execute it with the following command:

You will see that the script automatically starts updates, downloads required packages, creates the user, downloads the code from Github, … Eventually, if you’ve chosen to install the enterprise version, you will need to give in your Github credentials to download the enterprise code (since this is a private repository). Fill in your details and let the script continue:
Odoo 9 enterprise authentication
Give the script a few minutes to configure and install everything and eventually you will see something like this:
Result install script

You now have a fully functional Odoo V11 community or enterprise on your system! Congratulations.
Odoo V11

4. Extra information about Odoo 11 Enterprise

Since Odoo Enterprise uses code from both and we will separate the code with this script. This will make future upgrades easier and the code is nicely separated. This means that the default V11 code will be under /odoo/odoo-server/ and all the enterprise code will be under /odoo/enterprise/.

In the script you saw there was an option to change the Odoo port (OE_PORT). When you’d change this port number to 8070 in the install script it would be applied to /etc/your-config-file.conf and this would give you the ability to change the default port.
To apply these changes you should do the following:
Changing Odoo settings
The -c will change the configuration and memorize what you’ve changed under /etc/your-config-file.conf. Because my port was set to 8070 this is telling the Odoo that it should run on port 8070. When you would now open up your browser and navigate to http://localhost:8070/ you will see it is running there:
Odoo V9 alternative port

Has this tutorial helped you, do you have any feedback or questions? Post away!
Tutorial sponsored by Oocademy


75 thoughts on “Installing Odoo 11 (enterprise) on Ubuntu

  1. Jeff says:

    Thanks a lot for that Yenthe, that s awesome!!
    I have a pb maybe you could give me some guideline…
    I’m Odoo partner and I recently recruit devellopers but I wonder what is the way to work under odoo Enterprise with my team?
    every devellopers need to have his own Odoo E licence to devellop locally new modules? I don’t think so…. But 1 licence is for 1 server, so what is the right way to work with a team under Odoo E with one licence?
    Thanks for any guidelines

  2. Thanks a lot for this tutorial.
    I have a question, I’ve installed Odoo Community Edition at our local server (disconnected from the Internet), and downloaded free archived packages from the Odoo App Store and installed on it.
    So, if I buy the Enterprise Edition with selected packages, what will I receive at my e-mail? is it archived packages to be added to addon folder? Or only the partner can install the Enterprise Edition at our local server?

    thanks again.

  3. cj says:

    Followed this guide with a fresh 16.04 install for Enterprise 11.
    Script completed successfully – Done, server is up and running.
    However when I visit the ipaddress:8069 I cannot connect as the site cannot be reached..

    Any ideas ?

  4. Samuel says:

    Hi Yenthe,
    I have installed Odoo11e with your script. But I only get the database screen without any css.
    I found a thread with you and a guy having exactly the same problem. I tried the -u all but it does nothing. Nothing happens and I still have the same problem.

    Can you help? Thanks so much!

    • Yenthe666 says:

      Hi Shane,

      You’re welcome! The script is only for installing a new Odoo. You shouldn’t install a new version over the original one, that might get you into quite some troubles. Just install a new Odoo on another port and migrate your database.

  5. Ghaith Gammar says:

    Hi Yenthe

    Can you help us by publishing a tutorial for high performance Odoo configuration, Also Apache and Ngix configuration
    i think is very important.
    Thank so much for all your efforts.

    Best regards.

  6. jerome says:

    Hi Yenthe,
    well this is an amazing easy way to setup a the new odoo 11, thanks you so much!
    From there can i just import my odoo10 database with the web interface?
    Thanks! 😉

  7. Dimitar Epitropov says:

    Hi Yenthe,

    Thanks that’s awesome I am a bit confused although. You are installing a lot of packages/libraries that are not included in the requirements.txt

    I have two questions for you, will be very happy if you manage to answer me:
    1) Is the requirements.txt sufficient
    2) Did you encountered any package that you installed via aptitude to be mandatory to install via apt and not pip3. I am converting the installation script to use pip3 only in order to empower virtualenvironments.

    Thanks a lot!

    • Yenthe666 says:

      Hi Dimitar,

      Happy that you like it!
      1) There are indeed quite some packages that are not in requirements.txt but that might be needed (such as dependencies for some specific modules that won’t break Odoo if you don’t have them but are needed for the module to work).
      2) In theory all dependencies from aptitude should be able to be removed. It should be possible to only have the pip3 installations and work fine for virtual environments. Just double check it on a test environment to be sure 😉

      • Dimitar Epitropov says:

        Hey that was fast, thanks for the prompt answer 🙂
        Of course, I am setting up my dev env now, just wanted to check if you can warn me for something and spare me some time troubleshooting.
        I’ve found an equivalent to all apt packages in PyPi so I will install them with pip3.

        I will post a comment later to inform of the result.

  8. Shaun says:

    Hello Yenthe

    I see your script uses source from git repo and not the ubuntu package installer!!!!
    What is benefit of this ?

    can this script be used from production or only development ?
    what is best way to upgrade odoo git fetch or run script again ?

    • Yenthe666 says:

      Hi Shaun,

      It is a lot easier to maintain and update Odoo from Github.
      You can use it for live and development production. Updating should always be done with a git fetch – don’t run the installer again. It is a one time installer. 😉

  9. Alex says:

    Hi Yenthe,

    Thank you for the script.

    I am completely new to Odoo. But I tried installing Community your script on my test server.

    And I am now planning to use Enterprise (production) for my company. I was initially thinking hiring a Odoo partner but they charged me so much just to install Enterprise.

    Without due to respect, can I use your script to install Enterprise for a production server purpose. I do not know how to check when went well or what did not went well.

    • Yenthe666 says:

      Hi Alex,

      The problem is that only Odoo partners get access to the Github repository for the enterprise code (under odoo/enterprise). If you could get access to the enterprise repository you can use the script and install the enterprise version. If you buy the enterprise yourself you will get a .deb package I believe, which my script doesn’t support at the moment. Out of curiosity, what did they charge for an installation then?

  10. Alex says:

    I followed your tutorial (enterprise=True), but when I try to create a new database I get the following error:
    Database creation error: relation “ir_model” does not exist LINE 1: SELECT * FROM ir_model WHERE state=’manual’ ^

    Also the interface of the database manager is messed up, seems like some paths are wrong?
    Kind regards

  11. Jochen Unk says:

    Realy amasing. After many difficult tries with oddo on own computers directly with linux or with windows or Linux and docker I tried a V-server from server4you.
    After restoring Debian8 with Ubuntu16.04 I run the script and it was just working out of the box.
    Thats great help.
    Thanks and regards from Roland

  12. Grace says:

    Thank you so much Yen. Being a Newbie, After struggling with odoo, your script gave a a hitch free install. Even showes off to my boss.

    The issue I have now is configuring email (incoming and outgoing). After inputting the credentials (gmail) and clicking test, I get ; Odoo Server Error – Warning
    Connection test failed: 101
    Network is unreachable

    Meanwhile, the server is online and I can ping etc. The ports are correct as well.

    Is there something I am missing? Pls help.


    • Yenthe666 says:

      Hi Grace,

      That sounds like you just didn’t configure the outgoing e-mailserver correctly. 🙂
      Have you used as SMTP server?
      Did you use port 587 to connect?
      Did you enabe SSL/TLS?


  13. Luis Vazquez says:

    When running the odoo_install I ran with a problem:

    odoo@f360:~/wkhtmltopdf$ gdebi –n wkhtmltox-0.12.1_linux-trusty-amd64.deb
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Reading state information… Done
    This package is uninstallable
    Dependency is not satisfiable: libpng12-0


    PLEASE help me !!!

    I tried to install libpng without luck !!


  14. Hei Yenthe,

    I tried to install odoo 11 entreprise using your script on ubuntu 16.04. It looked as if the script went just fine, however, when i run start the database selector, the page does not render correctly and when i create a database i get the error message “Database creation error: relation “ir_model” does not exist LINE 1: SELECT * FROM ir_model WHERE state=’manual’ ^”

    Tried to create some test databases. They do show up, but cannot access nor delete them.

    Any idea where i went wrong here?

    ed edtest test
    Manage databases
    Create Database

    Odoo is up and running!
    Fill out this form to create a new database. You will install your first app afterwards.

    Master Password
    Database Name
    Load demonstration data (Check this box to evaluate Odoo)

  15. Dharmakantha Weeratunge says:

    Hi ,

    Could you please let us know what is the best method to replicate odoo 10 and 11 for High availability. How to replicate PostgreSQL. Replication should be as Master Master.If one fails other one should take over completely.

    • Yenthe666 says:

      Hi Dharmakantha,

      You’ll need to setup a second postgreSQL server and configure one as the primary and one as a slave. This is not a two minute job honestly. 🙂

  16. Ahmed Kamar eddine says:

    Hello Yenth,

    Thanks a lot for your very informative information and I really appreciate the knowledge you pass on to others.

    I would really appreciate if you can post an article about running Odoo 11 with HTTPS.

    Thanks a lot

  17. Jason Wu says:

    Dear Sir:

    ODOO 11 Script…
    mkdir: cannot create directory ‘/odoo/enterprise’: Permission denied
    mkdir: cannot create directory ‘/odoo/enterprise/addons’: No such file or directory

    why ?

    • Yenthe666 says:

      Hi Jason,

      You don’t have enough rights to make folders in that location. You are either running that script with not enough rights or you are trying to install it in an odd place where you really shouldn’t.

  18. Hello i have install odoo with your script but when i put my custom modules in the /odoo/custom/addons i cant see the apps

    can you advise how i should run my custom modules

    • Yenthe666 says:

      Hi Poul,

      You probably didn’t add /odoo/custom/addons in your Odoo configuration file yet (under /etc/). Only after adding the path and restarting the service your Odoo will be able to find the apps.

  19. Hi Yenthe

    I have installed odoo 11 with your script. Added the custom addons folder path to odoo config file under etc. Restarted the odoo server. Clicked on update apps list but I cannot view my custom modules in apps list. I think odoo cannot find my addons folder. Permissions are also allowed for that directory to odoo user. No errors appear on log file. Kindly help.

    —-My Config File———————————
    ; this is the password that allows database operation:

    • Yenthe666 says:

      Hi David,

      Judging by the config and information you’ve added everything looks well. It has to be some issue with security rights or a misconfiguration of the subfolders (which I can’t see)

  20. kenny says:

    Hi Yenthe,

    I would like to use Pycharm for development, is there a way to do it? I don’t find a lot of information on the internet about the configuration for odoo 1.

  21. Timd says:

    I’m using a modified version of your script to install V12. Looks like there are some new required libraries. I’m playing around with the script to see if I can solve it.

    Any thoughts on adding:
    sudo pip3 install -r $OE_HOME_ext/requirements.txt

    • Yenthe666 says:

      Hi Timd,

      I tried it just when Odoo 12 was released but it was not working great out of the box for all Ubuntu versions. It is something I do want to get back to at some point though!

Leave a Reply