2

I installed Odoo with the help of http://www.gotodoo.com. After the installation of Odoo 9.5 in Ubuntu 16.04, while running localhost:8069 in the browser it returns:

500 Internal server error
The server encountered an internal error and was unable to complete your request. 
Either the server is overloaded or there is an error in the application.

enter image description here

How do I install Odoo on my Ubuntu?

pa4080
  • 30,621

2 Answers2

2

How to install Odoo 11 All-in-one management software on Ubuntu


1. Install Odoo

  • Here are presented two alternative methods of Odos's installation - from the GitHib project and from the repository.

1.A Install Odoo from the repository. This should be the preferable way.

Install the dependencies, add the repository and its key, update the system and install the package:

sudo apt update && sudo apt install postgresql
wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add -
echo "deb http://nightly.odoo.com/11.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list
sudo apt update && sudo apt upgrade && sudo apt install odoo

With this configuration you can control the service by the commands:

sudo systemctl status odoo.service
sudo systemctl restart odoo.service
sudo systemctl start odoo.service
sudo systemctl stop odoo.service

The main configuration file is: /etc/odoo/odoo.conf.


1.B Install Odoo from the GitHib project. If you've followed 1.A skip this step - go to 2.

This section uses Yenthe V.G's installation scrip. I found this approach in the article: Install Odoo 11 on Ubuntu 16.04.... Download odoo_install.sh:

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

Edit odoo_install.sh and modify the parameters, under the section #fixed parameters:

  • OE_USER will be the username for the system user, the default one is odoo.
  • By default the script will create user's home directory /<odoo user>. You could leave the following values as default, but I would prefer /home/<odoo user>:

    OE_HOME="/home/$OE_USER"
    OE_HOME_EXT="$OE_HOME/${OE_USER}-server"
    
  • INSTALL_WKHTMLTOPDF set to False if you do not want to install Wkhtmltopdf, if you want to install it you should set it to True.

  • OE_PORT is the port where Odoo should run on, for example 8069.
  • OE_VERSION is the Odoo version to install, for example 11.0 for Odoo V11.
  • IS_ENTERPRISE will install the Enterprise version on top of 11.0 if you set it to True, set it to False if you want the community version of Odoo 11.
  • OE_SUPERADMIN is the master password for this Odoo installation. The default pass is admin.

Make odoo_install.sh executable and execute it as root:

chmod +x odoo_install.sh && sudo ./odoo_install.sh

You could control the application by the commands:

sudo /etc/init.d/odoo-server restart
sudo /etc/init.d/odoo-server start
sudo /etc/init.d/odoo-server stop

The configuration file is: /etc/odoo-server.conf.


2. Proceed the installation of ODOO through a supported web browser

enter image description here


3. Reverse proxy

In order to access your Odoo application only by using your domain name, without the port number in the URL, or through HTTPS, you need to set up a reverse proxy:

pa4080
  • 30,621
0

You can also use a bash script to easily install Odoo.

Installation procedure

1. Download the script:

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

2. Modify the parameters as you wish.

There are a few things you can configure, this is the most used list:

OE_USER will be the username for the system user. INSTALL_WKHTMLTOPDF set to Falseif you do not want to install Wkhtmltopdf, if you want to install it you should set it to True.

OE_PORT is the port where Odoo should run on, for example 8069.

OE_VERSION is the Odoo version to install, for example 11.0 for Odoo V11.

IS_ENTERPRISE will install the Enterprise version on top of 11.0 if you set it to True, set it to False if you want the community version of Odoo 11.

OE_SUPERADMINis the master password for this Odoo installation.

3. Make the script executable

sudo chmod +x odoo_install.sh

4. Execute the script:

sudo ./odoo_install.sh

Useful commands:

Start odoo server

sudo /etc/init.d/odoo-server start

Restart odoo server

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

Stop odoo server

sudo /etc/init.d/odoo-server stop

If you want to see more helpful commands run: sudo /etc/init.d/odoo-server -h

philip
  • 109