Installation Guidelines To Odoo18
✅ Steps to Install Odoo on Ubuntu 22.04
🔧 1. Create Workspace Directories
1:- mkdir -p ~/workspace/server
2:- cd ~/workspace/server
📝 3. Rename Odoo Folder
Rename the cloned odoo directory to match the version, e.g., 17.0C or 18.0C:-
1: mv odoo 18.0C
🌐 4. Setup Virtual Environment
Step into the workspace:-
1:- cd ~/workspace
2:- mkdir virtual
3:- cd virtual
After run these commands one by one for setting up virtual env for Python 3.10:-
1:- wget https://bootstrap.pypa.io/get-pip.py
2:- python3.10 get-pip.py
3:- pip3.10 install virtualenv
4:- python3.10 -m virtualenv 18.0
5:- source 18.0/bin/activate
6:- deactivate
📥 5. Install Required System Packages
Run These Commands One By One For Installing The Required System Packages:-
1:-sudo apt-get update
2:-sudo apt-get install -y python3-dev libxml2-dev libxslt1-dev zlib1g-dev \libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev \libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev \libblas-dev libatlas-base-dev
3:-sudo apt-get install -y npm
4:-sudo ln -s /usr/bin/nodejs /usr/bin/node
5:-sudo npm install -g less less-plugin-clean-css
6:-sudo apt-get install -y node-less
🗃️ 6. PostgreSQL Setup
1:- sudo apt-get install -y postgresql
2:- sudo su - postgres
After install the postgreSQL then run this command Inside PostgreSQL shell:-
1:- createuser --createdb --username postgres --no-createrole --superuser --pwprompt <SystemUser>
2:- exit
🔁 7. Activate Virtual Environment & Install Requirements
Run these commands one by one on terminal for activating the virtual environment and install the requirements:-
1:- source ~/workspace/virtual/18.0/bin/activate
2:- cd ~/workspace/server/18.0C
3:- pip3.10 install -r requirements.txt
📄 8. Install wkhtmltopdf Dependencies
Run these commands one by one on terminal:-
1:- sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
2:- sudo wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
3:- sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
4:- sudo apt-get install -y xfonts-75dpi
5:- sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
6:- sudo apt install -f
Step 1:-
nano <project>.conf
After run this command add these
Basic conf template:
[options]
admin_passwd = admin
db_host = False
db_port = False
db_user = <SystemUser>
db_password = False
addons_path = addons
logfile = odoo.log
⚙️ 9. Create Configuration File
Inside server/18.0C/, create a config file:
🚀 10. Run the Odoo Server
From 18.0C directory:
./odoo-bin -c <project>.conf