Updated: 4 November 2026 · Applies to: Odoo 20 on Ubuntu 24.04 LTS (package installation)
After you install Odoo from the official package (How to install Odoo 20 Community on Ubuntu 24.04?), it is helpful to know where its files are and how to start, stop and configure it. This article lists the locations and the commands you use most.
Locations
- Configuration file:
/etc/odoo/odoo.conf - Log file:
/var/log/odoo/odoo-server.log - Data folder of the
odoouser (filestore, sessions):/var/lib/odoo(the filestore is under.local/share/Odoo/filestore) - System service:
odoo(runs as the userodoo) - Web address: port
8069by default - PostgreSQL user:
odoo, created by the package
Service commands
sudo systemctl status odoo # is it running? sudo systemctl restart odoo # after changing odoo.conf sudo systemctl stop odoo sudo systemctl start odoo sudo systemctl enable odoo # start after every reboot sudo tail -f /var/log/odoo/odoo-server.log # follow the log (Ctrl+C to stop)
Change settings
Odoo reads its settings from /etc/odoo/odoo.conf. Edit it with sudo nano /etc/odoo/odoo.conf, keep everything under the [options] line, and restart Odoo afterwards. Useful options (they are the command line options of Odoo with underscores instead of dashes):
http_port = 8069: port of the web server (default 8069).http_interface = 127.0.0.1: address Odoo listens on. The default is all addresses; use 127.0.0.1 behind a proxy.proxy_mode = True: trust theX-Forwarded-*headers of a reverse proxy (How to run Odoo behind Nginx with HTTPS (proxy mode)?).admin_passwd = ...: master password of the Database Manager (How to reset the Odoo master password (admin_passwd)?).db_name,dbfilter,list_db: which database Odoo serves, and whether the database list is visible.workers = N: turns on multi-process mode with N web workers, for many users. Rule of thumb from Odoo: (CPU cores × 2) + 1; one worker serves roughly 6 concurrent users.limit_memory_soft,limit_memory_hard: memory limits per worker, in bytes.addons_path: folders with additional modules (add your custom modules here, keep the default folders).
A worker uses roughly 150 MB of memory for light requests and up to about 1 GB for heavy ones, so check your RAM before you raise workers.
Install or update apps from the command line
Normally you do this in the Apps menu. From the server you can update an installed module after you changed its code. Stop the service first, then run Odoo once as the odoo user:
sudo systemctl stop odoo sudo -u odoo /usr/bin/odoo -c /etc/odoo/odoo.conf -d yourdb -u module_name --stop-after-init sudo systemctl start odoo
-d selects the database, -u updates a module (-i installs one), and --stop-after-init ends the process when the update is done.
Common problems
- The service does not start after a configuration change: read the last lines of the log; a mistyped option or a wrong path is the usual cause.
- Cannot connect to the database: check
sudo systemctl status postgresql. - Odoo is slow with many users: raise
workersand add RAM, and use a reverse proxy. - Permission errors: files in
/var/lib/odooand/var/log/odoomust belong to the userodoo.
Frequently asked questions
Can I move the data folder to another disk?
Yes: set data_dir = /data/odoo in the configuration file, move the existing folder there with the service stopped, and give the odoo user ownership.
How do I install Odoo apps that are not in the standard list?
Put the module folder into a directory listed in addons_path, restart Odoo, and use Apps › Update Apps List with developer mode on.
Official documentation: Odoo 20 documentation: Deploying Odoo and command-line interface.
Need a server for Odoo, or a hand with the setup?
- Odoo hosting: cloud, VPS or dedicated servers for Odoo.
- KVM VPS with NVMe storage: full root access to install Odoo yourself.
Prefer a hand with the setup? Our engineers can do it for you: Hire an Expert, or use our on-demand server management.