0% encontró este documento útil (0 votos)
490 vistas

Odoo Bitnami

Este documento proporciona información sobre cómo instalar y administrar la pila Odoo de Bitnami. Explica cómo descargar e instalar la pila, los requisitos del sistema, las credenciales de inicio de sesión predeterminadas, cómo administrar los servicios y más.

Cargado por

djorman
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como DOCX, PDF, TXT o lee en línea desde Scribd
0% encontró este documento útil (0 votos)
490 vistas

Odoo Bitnami

Este documento proporciona información sobre cómo instalar y administrar la pila Odoo de Bitnami. Explica cómo descargar e instalar la pila, los requisitos del sistema, las credenciales de inicio de sesión predeterminadas, cómo administrar los servicios y más.

Cargado por

djorman
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como DOCX, PDF, TXT o lee en línea desde Scribd
Está en la página 1/ 38

Todas las secciones

Páginas de documentación de Bitnami > Windows / Linux / MacOS > Application Stacks > Odoo

Instalador De Bitnami Odoo


NOTA: Antes de ejecutar los comandos que se muestran en esta página, debe cargar el entorno
de la pila Bitnami ejecutando el script installdir / use_APPNAME (Linux y Mac OS X) o
haciendo clic en el acceso directo en el menú Inicio en "Inicio -> Pila APPNAME de Bitnami -
> Consola de aplicación "(Windows). Más información .

NOTA: Cuando ejecute los comandos que se muestran en esta página, reemplace elmarcador
de posición de installdir con el directorio de instalación completo para su pila de Bitnami.

Descripción
Odoo es una plataforma ERP y CRM de código abierto, anteriormente conocida como OpenERP, que
puede conectar una amplia variedad de operaciones comerciales, como ventas, cadena de suministro,
finanzas y gestión de proyectos.

Pruebe la OS X VM para Mac (versión beta). Este nuevo producto hace que sea realmente
fácil ejecutar esta aplicación en su Mac con solo unos pocos clics. ¡No se necesita
VirtualBox! Encuentra aquí más información sobre esto.

Primeros Pasos Con La Pila De Bitnami Odoo


¡Bienvenido a tu nueva aplicación de Bitnami! Aquí hay algunas preguntas (¡y respuestas!) Que podría
necesitar al comenzar con su aplicación.

¿Cuáles Son Los Requerimientos Del Sistema?


Antes de descargar e instalar su aplicación, verifique que su sistema cumpla con estos requisitos .

¿Cómo Instalo Bitnami Odoo Stack?


Instalador de Windows, OS X y Linux
 Descargue el archivo ejecutable de Bitnami Odoo Stack del sitio web de Bitnami .
 Ejecute el archivo descargado:
o En Linux, otorgue permisos ejecutables al instalador y ejecute el archivo de instalación en la consola.
o En otras plataformas, haga doble clic en el instalador y siga las instrucciones que se muestran.
Consulte las instrucciones de las Preguntas frecuentes sobre cómo descargar e instalar una pila de
Bitnami para obtener más detalles.

La aplicación se instalará en los siguientes directorios predeterminados:

Sistema operativo Directorio

Windows C: \ Bitnami \ APPNAME-VERSION

Mac OS X / Aplicaciones / APPNAME-VERSION

Linux / opt / APPNAME-VERSION (ejecutándose como usuario root )

OS X VM

 Descargue el archivo OS X VM para Bitnami Odoo Stack del sitio web de Bitnami .
 Comience el proceso de instalación haciendo doble clic en el archivo de imagen y arrastrando el icono
de WordPress OS X VM a la carpeta Aplicaciones.
 Inicie la máquina virtual haciendo doble clic en el icono en la carpeta de aplicaciones.

¿Qué Credenciales Necesito?


Necesita credenciales de la aplicación, que consiste en un nombre de usuario y contraseña. Estas
credenciales le permiten iniciar sesión en su nueva aplicación Bitnami.

¿Cuál Es El Nombre De Usuario Del Administrador Para Que Yo Inicie Sesión En La


Aplicación Por Primera Vez?

 Para los instaladores de Windows, Linux y OS X, usted configuró el nombre de usuario la primera vez
que instaló la aplicación.
 Para las VM de OS X, el nombre de usuario se puede obtener haciendo clic en la insignia de Bitnami en
la esquina inferior derecha de la página de bienvenida de la aplicación.

¿Cuál Es La Contraseña De Administrador?

 Para los instaladores de Windows, Linux y OS X, usted configuró la contraseña la primera vez que
instaló la aplicación.
 Para las máquinas virtuales OS X, la contraseña se puede obtener haciendo clic en la insignia de
Bitnami en la esquina inferior derecha de la página de bienvenida de la aplicación.

¿Cuál Es La Configuración Predeterminada?


Aplicación Odoo
Se creará una nueva base de datos durante el proceso de implementación.

Linux y Mac OS X
El paquete Odoo está instalado en installdir / apps / odoo / lib / odoo-version.egg .

Windows
El paquete Odoo está instalado en installdir / apps / odoo / lib / site-packages / odoo-version.egg .

Archivo De Configuración De Odoo


El archivo de configuración del servidor Odoo está en installdir / apps / odoo / conf / odoo-server.conf .

NOTA: El nombre del archivo de configuración cambió desde que se lanzó la versión Odoo
10. Si está utilizando una versión anterior, el archivo de configuración está eninstalldir / apps /
odoo / conf / openerp-server.conf .

Servidores Odoo
De forma predeterminada, se ejecutan dos servidores Odoo:

 odoo_background_worker , que controla las acciones programadas


 odoo_gevent , que maneja las conexiones de mensajes instantáneos. Su puerto se puede encontrar en
el archivo de configuración de Odoo en la variable longpolling_port .

Registro De Odoo
Los registros de Odoo se encuentran en installdir / apps / odoo / log .

¿Cómo Iniciar O Detener Los Servicios?


Linux
Los instaladores nativos de Bitnami incluyen una herramienta gráfica para administrar servicios. Esta
herramienta se llama manager-linux-x64.run en Linux y se encuentra en el directorio de
instalación. Para usar esta herramienta, haga doble clic en el archivo y luego use la interfaz gráfica para
iniciar, detener o reiniciar los servicios. Los mensajes de registro del servidor se pueden verificar en la
pestaña "Eventos del servidor".
El instalador nativo también incluye un script de línea de comandos para iniciar, detener y reiniciar
aplicaciones, llamado ctlscript.sh . Este script se puede encontrar en el directorio de instalación y acepta
las opciones de inicio , detención , reinicio y estado . Para usarlo, inicie sesión en la consola del servidor
y ejecútelo siguiendo los ejemplos a continuación:

 Llámalo sin ningún nombre de servicio para comenzar todos los servicios:

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo installdir/ctlscript.sh start

 Úselo para reiniciar un servicio específico solo pasando el nombre del servicio como argumento, por
ejemplo, mysql , postgresql o apache :

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo installdir/ctlscript.sh restart mysql

sudo installdir/ctlscript.sh restart postgresql

sudo installdir/ctlscript.sh restart apache

 Obtener el estado actual de todos los servicios:


 installdir/ctlscript.sh status

La lista de servicios disponibles varía según los componentes requeridos para cada aplicación.

Mac OS X
Los instaladores nativos de Bitnami incluyen una herramienta gráfica para administrar servicios. Esta
herramienta se llama manager-osx en Mac OS X y se encuentra en el directorio de instalación. Para usar
esta herramienta, haga doble clic en el archivo y luego use la interfaz gráfica para iniciar, detener o
reiniciar los servicios. Los mensajes de registro del servidor se pueden verificar en la pestaña "Eventos
del servidor".
El instalador nativo también incluye un script de línea de comandos para iniciar, detener y reiniciar
aplicaciones, llamado ctlscript.sh . Este script se puede encontrar en el directorio de instalación y acepta
las opciones de inicio , detención , reinicio y estado . Para usarlo, inicie sesión en la consola del servidor
y ejecútelo siguiendo los ejemplos a continuación:

 Llámalo sin ningún nombre de servicio para comenzar todos los servicios:

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo installdir/ctlscript.sh start

 Úselo para reiniciar un servicio específico solo pasando el nombre del servicio como argumento, por
ejemplo, mysql o apache :

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo installdir/ctlscript.sh restart mysql

sudo installdir/ctlscript.sh restart apache

 Obtener el estado actual de todos los servicios:


 installdir/ctlscript.sh status

La lista de servicios disponibles varía según los componentes requeridos para cada aplicación.

NOTA: Si está utilizando el administrador de pila para Mac OS X-VM, consulte la


siguientepublicación de blog para aprender a administrar servicios desde su herramienta
gráfica.

Windows
Los instaladores nativos de Bitnami incluyen una herramienta gráfica para administrar servicios. Esta
herramienta se denomina manager-windows.exe en Windows y se encuentra en el directorio de
instalación. Para usar esta herramienta, haga doble clic en el archivo y luego use la interfaz gráfica para
iniciar, detener o reiniciar los servicios. Los mensajes de registro del servidor se pueden verificar en la
pestaña "Eventos del servidor".
El instalador nativo de Windows crea accesos directos para iniciar y detener los servicios creados en el
menú Inicio, en "Programas -> Pila de APPNAME de Bitnami -> Servicio de Bitnami". Los servidores
también se pueden administrar desde el panel de control "Servicios" de Windows. Los servicios se
nombran utilizando el formato APPNAMESERVICENAME, donde APPNAME es un marcador de posición
para el nombre de la aplicación y SERVICENAME es un marcador de posición para el nombre del
servicio. Por ejemplo, el instalador nativo para Bitnami WordPress Stack instala servicios
llamados wordpressApache y wordpressMySQL .

Estos servicios se iniciarán automáticamente durante el arranque. Para modificar este comportamiento,
consulte la sección sobre deshabilitar servicios en Windows .

¿Cómo Encontrar La Contraseña Maestra?


Por razones de seguridad, la contraseña maestra se genera aleatoriamente durante la instalación de la
aplicación. Para encontrar la contraseña maestra, vea el archivo deconfiguración installdir / apps / odoo
/ conf / odoo-server.conf y busque la siguiente línea, que contiene la contraseña:

admin_passwd = PASSWORD

Para establecer otra contraseña:

 Edite el archivo installdir / apps / odoo / conf / odoo-server.conf :

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo nano installdir/apps/odoo/conf/odoo-server.conf


 Modifique la línea a continuación y reemplace el marcador de posición PASSWORD con su contraseña
deseada:
 admin_passwd = PASSWORD

 Reinicie el servidor Apache:

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo installdir/ctlscript.sh restart apache

NOTA: El nombre del archivo de configuración cambió desde que se lanzó la versión Odoo
10. Si está utilizando una versión anterior, el archivo de configuración está eninstalldir / apps /
odoo / conf / openerp-server.conf .

¿Cómo Configurar La Zona Horaria Odoo?


El servidor Odoo está obligado a ser UTC. La representación de los valores de fecha y hora en la zona
horaria del usuario debe realizarse exclusivamente en el lado del cliente. Puede configurar la zona
horaria por usuario en el panel "Configuración" del usuario.
¿Cómo Configurar La Configuración Del Correo Saliente?
Para configurar el correo electrónico saliente, siga los pasos a continuación:

 Vaya a Configuración -> Configuración general -> Configurar servidor de correo saliente -
> Menú Crear .
 Complete la información requerida. La siguiente configuración configura Odoo para enviar correos
electrónicos a través de una cuenta de Gmail. Reemplace NOMBRE DE USUARIO y CONTRASEÑA con
su nombre de usuario y contraseña de cuenta de Gmail, respectivamente.
 Description: smtp.gmail.com

 #### Connection Information

 SMTP Server: smtp.gmail.com

 SMTP Port: 587

 #### Security and Authentication

 Connection Security: TLS

 Username: [email protected]

 Password: PASSWORD

 Guarde los cambios.


Para configurar la aplicación para utilizar otros servicios SMTP de terceros para el correo electrónico
saliente, como SendGrid o Mandrill, consulte las Preguntas frecuentes .

NOTA: Si está utilizando Gmail como servidor de correo saliente y ha tenido problemas al
intentar enviar correos electrónicos correctamente, consulte la sección Cómo solucionar
problemas de Gmail SMTP para conocer las causas de estos problemas y cómo solucionarlos.

¿Cómo Instalar Un Plugin En Odoo?

NOTA: Los pasos de esta sección presuponen que ha iniciado sesión en Odoo.com. Inicia
sesión ahora o regístrate para obtener una nueva cuenta .

¿Cómo Instalar Un Complemento En Odoo Desde El Panel De Administración?


Puede instalar módulos y complementos desde el panel de administración de la aplicación. Para
instalar un nuevo módulo en Odoo, siga los siguientes pasos:

 Inicie sesión en el panel de administración de Odoo y en la barra de menú superior, haga clic en
"Aplicaciones":

 En el menú de aplicaciones, verá el catálogo de complementos de Odoo. Busque el complemento que


desea instalar.
 Haga clic en el botón "Instalar" en el complemento que desea habilitar. Si ya ha iniciado sesión
en Odoo.com, la instalación se realizará automáticamente. El complemento aparecerá como
"Instalado":
¿Cómo Instalar Manualmente Un Complemento En Odoo?
Si no puede encontrar el complemento que desea instalar en el catálogo de complementos de Odoo,
puede cargar e instalar un módulo desde la línea de comandos. Para hacerlo, sigue estas instrucciones:

 Navegue hasta el catálogo de complementos de Odoo y seleccione la versión de la aplicación que ha


instalado (en este caso, v10.0):
 Seleccione el complemento que desea instalar y descárguelo (asegúrese de descargar un complemento
compatible con la versión actual de Odoo).
 Conéctese al servidor Odoo a través de SSH. Consulte las preguntas frecuentes para obtener más
información sobre esto.
 Una vez que haya accedido al servidor, cambie al siguiente directorio (tenga en cuenta que xyz son
marcadores de posición de la versión actual de Odoo):
 cd /apps/odoo/lib/odoo-10.0.xyz.egg/odoo

 Cambie los permisos del directorio de complementos para que pueda mover carpetas y archivos en
él. Ejecute lo siguiente para obtener los permisos correctos:

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.
sudo chmod 777 /addons

 Suba los directorios y archivos descomprimidos. Siga estas instrucciones para cargar archivos en el
servidor con SFTP.
 Una vez que hayas subido el módulo al directorio /apps/odoo/lib/odoo-10.0.xyz.egg/odoo/addons ,
debes asegurarte de que puedes administrar los archivos cargados como el usuario daemon . Ejecute el
siguiente comando:

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo chown -R daemon:daemon addons/MODULE-FOLDER-NAME

 Restaure los permisos al directorio /apps/odoo/lib/odoo-10.0.xyz.egg/odoo/addons :

Nota: solo use sudo si la pila se instaló como raíz . Recuerde cargar el entorno de la pila
Bitnami (instrucciones) antes de ejecutar los siguientes comandos.

sudo chmod 755 addons/

 Inicie sesión en el panel de administración de Odoo y en la barra de menú superior, haga clic en
"Configuración":
 In the right corner, you will find a description of Odoo. Under that information, you will see both the
"Activate developer mode" and the "Activate developer mode (with assets)". Click on any of these links
(the "Activate the developer mode (with assets)") is recommended:
NOTE: When you have the developer mode activated, you can see a bug icon in the upper right corner
of the screen.

 In the top menu bar, click "Apps". In the left side menu of the resulting screen, click "Update Apps List".
Click "Update" in the Module Update dialog to start the process.
 Click the "Apps" menu item. The plugin should appear in the Apps list:
 Click the "Install" button in the plugin you want to enable. If you are already logged in Odoo.com the
installation will be automatically done. The plugin will appear as "Installed":

How To Install The Live Chat Module?


Follow these steps:

 In the administration panel, click the "Apps" menu located in the upper-left margin and click "Install"
button in the Website Live Chat module.
How To Install Wkhtmltopdf?
Wkhtmltopdf is necessary for some Odoo functionality. To install it on your system, follow the steps
described below.

 Download the latest version of the package from the Wkhtmltopdf project releases page and install it.
Replace the X.Y.Z placeholders with the latest version available for your platform.

NOTE: The latest version available of Wkhtmltopdf is not compatible with some Odoo
functionalities in some Linux distributions. Please check what is the recommended version for
your Linux distribution in the Odoo GitHub repository.

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/X.Y.Z/wkhtmltox-
X.Y.Z_linux-generic-amd64.tar.xz

tar -xvf wkhtmltox-X.Y.Z_linux-generic-amd64.tar.xz

 Copy the binaries to the /usr/bin directory:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo cp ./wkhtmltox/bin/wkhtmltoimage /usr/bin/

sudo cp ./wkhtmltox/bin/wkhtmltopdf /usr/bin/

 (Odoo 11.x only) Install the necessary dependencies:


o Debian:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo apt-get install zlib1g fontconfig libxrender1 libfreetype6 libxext6 libx11-6

o CentOS:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo yum install zlib-devel fontconfig libXext libXrender freetype freetype-devel libX11-
devel

 Restart all running servers:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.
sudo sudo installdir/ctlscript.sh restart

sudo sudo installdir/ctlscript.sh restart apache

Now, PDF options will be available in your Odoo application.

Troubleshooting
If you experience issues with display resolution on Linux platforms, they could be related to the xfonts-
75dpi or xfonts-100dpi packages. Uninstall them by executing:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.
sudo dpkg --remove --force-depends xfonts-75dpi

sudo dpkg --remove --force-depends xfonts-100dpi

How To Create A Full Backup Of Odoo?


The Bitnami Odoo Stack is self-contained and the simplest option for performing a backup is to copy
or compress the Bitnami stack installation directory. To do so in a safe manner, you will need to stop all
servers, so this method may not be appropriate if you have people accessing the application
continuously.

NOTE: If you want to create only a database backup, refer to these instructions
for MySQL and PostgreSQL.

Backup On Linux And Mac OS X


Follow these steps:

 Change to the directory in which you wish to save your backup.


 cd /your/directory

 Stop all servers.

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo installdir/ctlscript.sh stop

 Create a compressed file with the stack contents.

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.
sudo tar -pczvf application-backup.tar.gz installdir

 Start all servers.

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo installdir/ctlscript.sh start

 Download or transfer the application-backup.tar.gz file to a safe location.


You should now download or transfer the application-backup.tar.gz file to a safe location.

Backup On Windows
Follow these steps:

 Stop all servers using the shortcuts in the Start Menu or the graphical manager tool.
 Create a compressed file with the stack contents. You can use a graphical tool like 7-Zip or WinZip or
just right-click the folder, click "Send to", and select the "Compressed (zipped) folder" option.
 Download or transfer the compressed file to a safe location.
 Start all servers using the shortcuts in the Start Menu or the graphical manager tool.

Restore On Linux And Mac OS X


Follow these steps:

 Change to the directory containing your backup:


 cd /your/directory

 Stop all servers.

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo installdir/ctlscript.sh stop

 Move the current stack to a different location:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo mv installdir /tmp/bitnami-backup

 Uncompress the backup file to the original directory:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.
sudo tar -pxzvf application-backup.tar.gz -C /

 Start all servers.

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo installdir/ctlscript.sh start

IMPORTANT: When restoring, remember to maintain the original permissions for the files
and folders. For example, if you originally installed the stack as the root user on Linux, make
sure that the restored files are owned by root as well.

Restore On Windows
 Change to the directory containing your backup:
 cd /your/directory

 Stop all servers using the shortcuts in the Start Menu or the graphical manager tool.
 Uninstall the previous services by executing the following command:
 serviceinstall.bat

 Create a safe folder named Backups in the desktop and move the current stack to it. Remember to
replace PATH with the right location of your folder:
 move installdir \PATH\Backups

 Uncompress the backup file using a tool like 7-Zip or Winzip or just double-click the .zip file to
uncompress it, and move it to the original directory.
 Install services by running the following commands from an elevated command prompt:
 cd installdir

 serviceinstall.bat INSTALL

 Start all servers using the shortcuts in the Start Menu or the graphical manager tool.

How To Upgrade The Bitnami Odoo Stack?


It is strongly recommended that you create a backup before starting the update process. If you have
important data, it is advisable that you create and try to restore a backup to ensure that everything
works properly.

WARNING: The process described in this section, only works in the same major version of
Odoo (i.e. upgrading from Odoo11.x.y to Odoo11.x.z). If you want to upgrade between Odoo
Major versions (i.e. upgrading from Odoo10.x to Odoo11.y) please check the Odoo
Community Forum and this Odoo Community Association project.

Upgrade Odoo And All Stack Components (Recommended)


 Go to your Odoo installation and instead of logging in, click "Manage Databases".
 From this web interface, create a backup of the bitnami_odoo database.
 Stop the running application.
 Install a new version of Bitnami Odoo (or deploy a new server).
 From the "Manage Databases" interface, restore the bitnami_odoo database.
 Stop all servers except PostgreSQL and migrate your data as explained in the section on migration.

NOTE: The default database name changed since the Odoo 10 version was released. If you are
upgrading a prior version, the default database name is bitnami_openerp.

Upgrade Only Odoo In The Bitnami Odoo Stack


Linux and Mac OS X
This approach is not recommended because a new Odoo version may have new dependencies not
included in your base stack.

NOTE: If you are using Odoo 10 or earlier, you need to replace the python3 command
with python.

 Download and install the latest Odoo version. For example:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

cd /tmp/

wget http://nightly.odoo.com/10.0/nightly/src/odoo_10.0.latest.tar.gz

tar zxvf odoo_10.0.latest.tar.gz

cd odoo-10.0-VERSION

sudo python3 setup.py install --prefix=installdir/apps/odoo --install-


lib=installdir/apps/odoo/lib

sudo chown -R daemon:daemon installdir/apps/odoo/lib


 Change the line
 #!installdir/python/bin/.python2.7.bin

to
#!installdir/python/bin/python3

in the installdir/apps/odoo/bin/odoo-bin file.


 Update your configuration to point to this version of Odoo. Edit the installdir/apps/odoo/conf/odoo-
server.conf file and replace the addons path to point to the new Odoo version.

Migrate Data To The New Odoo Installation


Once your Odoo installation have been updated, follow the steps below to migrate data to the new
installation.

 Stop monit and other services

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo monit quit

sudo installdir/ctlscript.sh stop

sudo installdir/ctlscript.sh start postgresql

 Start the Odoo server with the following parameters:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo su daemon -c "installdir/python/bin/python3 installdir/apps/odoo/bin/odoo-bin -c


installdir/apps/odoo/conf/odoo-server.conf --workers 0 -d bitnami_odoo -u all &"

 Wait until the server is completely started and the modules updated. You can check the start-up status
in the Odoo log file as shown below:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo tail -f installdir/apps/odoo/log/production.log

The upgrade process is finished when the messages "INFO bitnami_odoo odoo.service: Hit CTRL-C
again or send a second signal to force the shutdown" or "Odoo waiting for connections" appear in the
log file.
 Start all the servers:
Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo installdir/ctlscript.sh start

Remember that when importing the data, you will also be importing the Odoo users, including the
admin user and its password.

NOTE: The Odoo server configuration file, the Odoo log file and the default database name
changed since Odoo 10 version. If you are using a prior version, the Odoo server configuration
file is at installdir/apps/odoo/conf/openerp-server.conf, the Odoo log file is at
installdir/apps/odoo/log/openerp-server.log and the default database name is bitnami_openerp.

How To Create An SSL Certificate?


OpenSSL is required to create an SSL certificate. A certificate request can then be sent to a certificate
authority (CA) to get it signed into a certificate, or if you have your own certificate authority, you may
sign it yourself, or you can use a self-signed certificate (because you just want a test certificate or
because you are setting up your own CA).

Follow the steps below for your platform.

Linux And Mac OS X

NOTE: OpenSSL will typically already be installed on Linux and Mac OS X. If not installed,
install it manually using your operating system's package manager.

Follow the steps below:

 Generate a new private key:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo openssl genrsa -out installdir/apache2/conf/server.key 2048

 Create a certificate:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo openssl req -new -key installdir/apache2/conf/server.key -out


installdir/apache2/conf/cert.csr
IMPORTANT: Enter the server domain name when the above command asks for the
"Common Name".

 Send cert.csr to the certificate authority. When the certificate authority completes their checks (and
probably received payment from you), they will hand over your new certificate to you.
 Until the certificate is received, create a temporary self-signed certificate:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo openssl x509 -in installdir/apache2/conf/cert.csr -out


installdir/apache2/conf/server.crt -req -signkey installdir/apache2/conf/server.key -days
365

 Back up your private key in a safe location after generating a password-protected version as follows:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo openssl rsa -des3 -in installdir/apache2/conf/server.key -out privkey.pem

Note that if you use this encrypted key in the Apache configuration file, it will be necessary to enter the
password manually every time Apache starts. Regenerate the key without password protection from
this file as follows:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo openssl rsa -in privkey.pem -out installdir/apache2/conf/server.key

Windows

NOTE: OpenSSL is not typically installed on Windows. Before following the steps
below, download and install a binary distribution of OpenSSL.

Follow the steps below once OpenSSL is installed:

 Set the OPENSSL_CONF environment variable to the location of your OpenSSL configuration file.
Typically, this file is located in the bin/ subdirectory of your OpenSSL installation directory. Replace the
OPENSSL-DIRECTORY placeholder in the command below with the correct location.
 set OPENSSL_CONF=C:\OPENSSL-DIRECTORY\bin\openssl.cfg

 Change to the bin/ sub-directory of the OpenSSL installation directory. Replace the OPENSSL-
DIRECTORY placeholder in the command below with the correct location.
 cd C:\OPENSSL-DIRECTORY\bin
 Generate a new private key:
 openssl genrsa -out installdir/apache2/conf/server.key 2048

 Create a certificate:
 openssl req -new -key installdir/apache2/conf/server.key -out
installdir/apache2/conf/cert.csr

IMPORTANT: Enter the server domain name when the above command asks for the
"Common Name".

 Send cert.csr to the certificate authority. When the certificate authority completes their checks (and
probably received payment from you), they will hand over your new certificate to you.
 Until the certificate is received, create a temporary self-signed certificate:
 openssl x509 -in installdir/apache2/conf/cert.csr -out installdir/apache2/conf/server.crt
-req -signkey installdir/apache2/conf/server.key -days 365

 Back up your private key in a safe location after generating a password-protected version as follows:
 openssl rsa -des3 -in installdir/apache2/conf/server.key -out privkey.pem

Note that if you use this encrypted key in the Apache configuration file, it will be necessary to enter the
password manually every time Apache starts. Regenerate the key without password protection from
this file as follows:
openssl rsa -in privkey.pem -out installdir/apache2/conf/server.key

Find more information about certificates at http://www.openssl.org.

How To Enable HTTPS Support With SSL Certificates?

TIP: If you wish to use a Let's Encrypt certificate, you will find specific instructions for
enabling HTTPS support with Let's Encrypt SSL certificates in our Let's Encrypt guide.

NOTE: The steps below assume that you are using a custom domain name and that you have
already configured the custom domain name to point to your cloud server.

Bitnami images come with SSL support already pre-configured and with a dummy certificate in place.
Although this dummy certificate is fine for testing and development purposes, you will usually want to
use a valid SSL certificate for production use. You can either generate this on your own (explained here)
or you can purchase one from a commercial certificate authority.

Once you obtain the certificate and certificate key files, you will need to update your server to use
them. Follow these steps to activate SSL support:
 Use the table below to identify the correct locations for your certificate and configuration files.

Variable Value

Current application URL https://[custom-domain]/

Example: https://my-domain.com/ or https://my-


domain.com/appname

Apache configuration file installdir/apache2/conf/bitnami/bitnami.conf

Certificate file installdir/apache2/conf/server.crt

Certificate key file installdir/apache2/conf/server.key

CA certificate bundle file


installdir/apache2/conf/server-ca.crt
(if present)

 Copy your SSL certificate and certificate key file to the specified locations.

NOTE: If you use different names for your certificate and key files, you should
reconfigure the SSLCertificateFile and SSLCertificateKeyFile directives in the
corresponding Apache configuration file to reflect the correct file names.

 If your certificate authority has also provided you with a PEM-encoded Certificate Authority (CA)
bundle, you must copy it to the correct location in the previous table. Then, modify the Apache
configuration file to include the following line below the SSLCertificateKeyFile directive. Choose the
correct directive based on your scenario and Apache version:

Variable Value

Apache configuration file installdir/apache2/conf/bitnami/bitnami.conf

Directive to include (Apache SSLCACertificateFile "installdir/apache2/conf/server-


v2.4.8+) ca.crt"
Variable Value

Directive to include (Apache SSLCertificateChainFile "installdir/apache2/conf/server-


< v2.4.8) ca.crt"

NOTE: If you use a different name for your CA certificate bundle, you should
reconfigure the SSLCertificateChainFile or SSLCACertificateFile directives in the
corresponding Apache configuration file to reflect the correct file name.

 Once you have copied all the server certificate files, you may make them readable by the root user only
with the following commands:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo chown root:root installdir/apache2/conf/server*

sudo chmod 600 installdir/apache2/conf/server*

 Open port 443 in the server firewall. Refer to the FAQ for more information.
 Restart the Apache server.
You should now be able to access your application using an HTTPS URL.

How To Force HTTPS Redirection With Apache?


Add the following lines in the default Apache virtual host configuration file
at installdir/apache2/conf/bitnami/bitnami.conf, inside the default VirtualHost directive:

<VirtualHost _default_:80>

DocumentRoot "installdir/apache2/htdocs"

RewriteEngine On

RewriteCond %{HTTPS} !=on

RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]

...

</VirtualHost>

After modifying the Apache configuration files:


 Open port 443 in the server firewall. Refer to the FAQ for more information.
 Restart Apache to apply the changes.

How To Debug Apache Errors?


Once Apache starts, it will create two log files
at installdir/apache2/logs/access_log and installdir/apache2/logs/error_log respectively.

 The access_log file is used to track client requests. When a client requests a document from the server,
Apache records several parameters associated with the request in this file, such as: the IP address of the
client, the document requested, the HTTP status code, and the current time.
 The error_log file is used to record important events. This file includes error messages, startup
messages, and any other significant events in the life cycle of the server. This is the first place to look
when you run into a problem when using Apache.
If no error is found, you will see a message similar to:

Syntax OK

How To Find The Database Credentials?


 Database username: postgres.
 Database password: The password entered during the installation process.

How To Connect To The PostgreSQL Database?


You can connect to the PostgreSQL database from the same computer where it is installed with
the psql client tool.

psql -U postgres

You will be prompted to enter the *postgres* user password. This is the same as the
[application password](/installer/faq#how-to-find-application-credentials).

How To Add New Databases?


Odoo include a built-in feature to add new databases from the "Manage databases" section.

In order to enable the Odoo scheduler for any database different from the default one (bitnami_odoo),
add the new database in the file installdir/apps/odoo/conf/odoo-server.confas follows (administrator
permissions are needed for editing the file):

db_name = bitnami_odoo, newdatabase

After doing so, please restart the service odoo_background_worker:


Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.
sudo installdir/ctlscript.sh restart odoo_background_worker

NOTE: The Odoo server configuration file and the default database name changed since the
Odoo 10 version was released. If you are using a prior version, the Odoo server configuration
file is at installdir/apps/odoo/conf/openerp-server.conf and the default database name
is bitnami_openerp.

How To Configure Domain-Based Database Filters Option?


Odoo can be configured to use sub-domain filtering so the users can run different Odoo databases on
different sub-domains. This means you can have different Odoo websites/applications for different
uses.

Odoo 10.X Or Higher


Linux and Mac OS X
 Edit the installdir/apps/odoo/conf/odoo-server.conf file and change these parameters:
 db_name = False

 dbfilter = ^%d$

 proxy_mode = True

 Edit the installdir/apps/odoo/scripts/odoo_background_worker.sh file and configure as shown below:


 SCHEDULER_START="$ODOO_HOME/bin/odoo-bin -c $ODOO_HOME/conf/odoo-server.conf --max-cron-
thread 1 --db-filter=^%d$"

 Edit the installdir/apps/odoo/scripts/odoo_gevent.sh file and add the following values:


 GEVENT_START="$ODOO_HOME/bin/odoo-bin gevent -c $ODOO_HOME/conf/odoo-server.conf --max-
cron-thread 0 --db-filter=^%d$"

 Add the following lines at the bottom of the installdir/apps/odoo/conf/httpd-app.conffile:


 <Proxy *>

 Order deny,allow

 Allow from all

 </Proxy>

 ProxyRequests Off
 Restart all the services:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo installdir/ctlscript.sh restart

Windows
 Edit the installdir/apps/odoo/conf/odoo-server.conf and change these parameters:
 db_name = False

 dbfilter = ^%d$

 proxy_mode = True

 Edit the installdir/apps/odoo/scripts/serviceinstall_odoo_background_worker.bat file and configure as


shown below:
 "installdir/apps\scripts\winserv.exe" install "odooBackgrooundWorker" -start auto
"installdir/apps\scripts\odoo-bin.bat" "-c" "installdir/apps\conf\odoo-server.conf" "--
max-cron-thread" "1" "--db-filter=^%d$"

 Edit the installdir/apps/odoo/scripts/serviceinstall_odoo_gevent.bat file and configure as shown below:


 "installdir/apps\scripts\winserv.exe" install "odooGevent" -start auto
"installdir/apps\scripts\odoo-bin.bat" "gevent" "-c" "installdir/apps\conf\odoo-
server.conf" "--max-cron-thread" "0" "--db-filter=^%d$"

 Add the following lines at the bottom of the installdir/apps/odoo/conf/httpd-app.conffile:


 <Proxy *>

 Order deny,allow

 Allow from all

 </Proxy>

 ProxyRequests Off

 Uninstall the old Services and install the new modified ones. Load the Bitnami stack environment and
execute the following commands::
 installdir/apps/odoo/scripts/serviceinstall_odoo_background_worker.bat UNINSTALL

 installdir/apps/odoo/scripts/serviceinstall_odoo_background_worker.bat INSTALL

 installdir/apps/odoo/scripts/serviceinstall_odoo_gevent.bat UNINSTALL

 installdir/apps/odoo/scripts/serviceinstall_odoo_gevent.bat INSTALL
 Restart all the services using the Windows Manager tool.

Odoo 9.X Or Earlier


 Edit the installdir/apps/odoo/conf/openerp-server.conf file and change these parameters:
 db_name = False

 dbfilter = ^%d$

 proxy_mode = True

 Edit the installdir/apps/odoo/scripts/openerp_background_worker.sh file and configure as shown below:


 SCHEDULER_START="$OPENERP_HOME/bin/openerp-server -c $OPENERP_HOME/conf/openerp-
server.conf --max-cron-thread 1 --db-filter=^%d$"

 Edit the installdir/apps/odoo/scripts/openerp_gevent.sh file and add the following values:


 GEVENT_START="$OPENERP_HOME/bin/openerp-gevent -c $OPENERP_HOME/conf/openerp-server.conf
--max-cron-thread 0 --db-filter=^%d$"

 Add the following lines at the bottom of the installdir/apps/odoo/conf/httpd-app.conffile:


 <Proxy *>

 Order deny,allow

 Allow from all

 </Proxy>

 ProxyRequests Off

 Restart all the services:

Note: Only use sudo if the stack was installed as root. Remember to load the Bitnami stack
environment (instructions) before running the commands below.

sudo installdir/ctlscript.sh restart

Bitnami Documentation
FAQs

 How to find application credentials?


 How to connect to the server through SSH?
 How to upload files to the server with SFTP?
 How to open the server ports for remote access?
 ¿Cómo configurar su aplicación para usar un servicio SMTP de terceros para el correo electrónico
saliente?
 ¿Cómo bloquear una dirección IP sospechosa?

Documentación De Plataforma

 Google Cloud Platform


 AWS Cloud
 Oracle Cloud Infrastructure Classic
 Microsoft Azure
 Alojamiento en la nube Bitnami
 Nube de CenturyLink
 1 y 1 plataforma en la nube
 Windows / Linux / MacOS
 Maquinas virtuales
 Contenedores
 Kubernetes

Documentación General

 Pilas de aplicación Bitnami


 Pilas de infraestructura de Bitnami
 Guías prácticas
 Componentes de Bitnami
 Avisos de seguridad

© 2018 Bitnami | Todos los derechos reservados.

Productos

 Catálogo de aplicaciones
 Stacksmith

Soluciones

 Embalaje de aplicación
 Migración en la nube
 Kubernetes

Fogonadura

 Nube
 Software
 Tecnología
 SI / revendedores

Empresa

 Sobre nosotros
 Equipo
 Carreras
 Clientes
 Contacto
 Blogs
 prensa
 Eventos
 Comunicados de prensa
 Logotipos

Legal

 Acuerdo del cliente


 Términos de Uso
 Intimidad
 Marca

Apoyo

 Comunidad
 Mesa de ayuda
 Seminarios web
 Formación

Realimentación
Seleccione un elemento en la página.

También podría gustarte