How to install Odoo 9 on ubuntu?

I pre-installed postgres, postgres-9.3 and pgadmin on ports 5432 and 5433.

remove them, then try to install odoo 9 using http://openies.com/blog/install-openerp-odoo-9-on-ubuntu-server-14-04-lts/

this tutorial.

but when executing the command

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo 

then it gives the following error:

createuser: could not connect to postgres database: could not connect to server: there is no such file or directory. The server is running locally and accepting connections to the Unix socket "/var/run/postgresql/.s.PGSQL.5432"?

sudo netstat -nltp | grep 5432 does not show any results.

pg_hba.conf

 # Database administrative login by Unix domain socket local all postgres peer # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all peer # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5 # Allow replication connections from localhost, by a user with the # replication privilege. #local replication postgres peer #host replication postgres 127.0.0.1/32 md5 #host replication postgres ::1/128 md5 
+5
source share
4 answers

Bitnami ODOO , easy to install on your computer.

Download from site

It is compatible with preinstall postgresql.

+1
source

1. Introduction

In this tutorial, I will learn how to install Odoo 9 on Ubuntu 14.04. The script that you will use is based on the Andre Schenkels encoder, but has been updated and improved.

2. Download script

The first step is to download my script from GitHub and add the code to a new .sh file on your Ubuntu computer, wherever you want to. For example, right under / home. Open the Ubuntu terminal and cd in the directory where you would like to save the script, and then create the file:

  sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/9.0/odoo_install.sh 

If you're curious about how the whole code looks and works, you can find it in my Github account.

Now open the file and edit the parameters to your liking:

  sudo nano odoo_install.sh 

There are a few things you can customize / change to your liking at the top of the script. You can choose whether you want to install Wkhtmltopdf or not, which version you like, where the location is, and most importantly, what is the password for the main administrator. Tip: Always change this for every Odoo installation!

3. Executing the Odoo Installation Executable File

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

 sudo chmod +x odoo_install.sh 

4. Make sure the script

Now that the code is in your file and the file is executable, you just need to execute it with the following command:

  ./odoo_install.sh 

You will see that the script automatically launches updates, downloads the necessary packages, creates a user, downloads the code from Github, ... Give the script a few minutes to configure and install everything, and in the end you will see something like this: enter image description here

You now have a fully functional Odoo V9 on your system! Congratulations. Odoo v9 enter image description here

5. Additional information

In the script, you saw that it is possible to change the Odoo port (OE_PORT). When youd changes this port number to 8070 in the install script, it will be applied to / etc / your -config-file.conf and this will give you the opportunity to change the default port.

To apply these changes, you must do the following:

** Change Odoo Settings **

-c will change the configuration and remember what you changed in / etc / your -config-file.conf. Since my port was set to 8070, this tells Odoo that it should work on port 8070. When you now open your browser and go to http: // localhost: 8070 / you will see that it works there: Odoo V9 alternate port

+3
source

This problem occurs when installing the postgres package without a version number. Although postgres will be installed, and this will be the correct script to configure the cluster, it will not work correctly. This is a packaging problem. If you are comfortable with Postgres, there is a script, you can run this cluster and run postgres, but if you are like me, then you will make it easy. First, prohibit the installation of old postgres. Currently the problem is 9.1, so I will assume that you installed

sudo apt-get remove --purge postgresql-9.1 now just reinstall

sudo apt-get install postgresql-9.1

Pay attention to the name of the package with the version number. NTN.

+2
source

I installed odoo using http://openies.com/blog/install-openerp-odoo-9-on-ubuntu-server-14-04-lts/ there was no problem with fresh ubuntu 14.04 LTS.

But you need to check that there is no postmaster.pid in postgres , possibly /usr/local/var/postgres/

Remove this and start the server using

 rm /usr/local/var/postgres/postmaster.pid 

It should work.

Check it out on install odoo 10 in ubuntu 16.04 LTS

+2
source

Source: https://habr.com/ru/post/1233116/


All Articles