- Created By Ahmad Ghozali -
Install Odoo 14.0
-
Pertama update apt kamu
sudo apt update
-
Upgrade apt kamu
sudo apt upgrade -y
-
Install Dependecies (pertama cek libssl1.1 di terminal ketik "openssl version" jika sudah ada tidak perlu di instal)
sudo apt install python3-pip python3-dev python3-venv python3-wheel libxml2-dev libpq-dev libjpeg8-dev liblcms2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential git libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libblas-dev libatlas-base-dev libssl1.1
-
install postgresql
sudo apt install postgresql postgresql-contrib
-
atur postgresql di PC kamu agar otomatis hidup saat booting
sudo systemctl enable postgresql sudo systemctl start postgresql sudo systemctl status postgresql
-
buat user baru postgresql (odoo14 ini adalah user kamu)
sudo su - postgres -c "createuser -s odoo14"
-
buat user untuk odoo
sudo useradd -m -d /opt/odoo14 -U -r -s /bin/bash odoo14
-
download wkhtmltopdf dan install
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
install wkhtmltopdf
chmod +x wkhtmltox_0.12.6.1-2.jammy_amd64.deb sudo apt install ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
dan cek setelah selesai
wkhtmltopdf --version
-
masuk ke folder Odoo 14 kamu dengan syntax berikut
sudo su - odoo14
download dari odoo community (jika kamu mau upgrade ke versi terbaru tinggal ganti branch 14 ke versi terbaru)
git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo14/odoo
dan keluar dari odoo di terminal
exit
-
buat baru phyton virtual environtment
sudo su cd /opt/odoo14 python3 -m venv myodoo14-venv source myodoo14-venv/bin/activate
dan install odoo14 dependencies "tungu hingga selesai"
(venv) $ pip3 install wheel (venv) $ pip3 install -r odoo/requirements.txt
dan nonaktifkan environment
deactivate
-
buat folder baru untuk custom addons
mkdir /opt/odoo14/custom-addons
-
sekarang keluar dari odoo14 user
exit
-
buat konfigurasi file odoo14
sudo nano /etc/odoo14.conf
- masukan perintah ini pada odoo14.conf
and save (Ctrl+X => Yes (Y) => Enter
[options] ;This is the password that allows database operations: admin_passwd = admin db_host = False db_port = False db_user = odoo14 db_password = False xmlrpc_port = 8069 logfile = /var/log/odoo14/odoo.log addons_path = /opt/odoo14/odoo/addons,/opt/odoo14/custom-addons
- masukan perintah ini pada odoo14.conf
-
buat konfigurasi di service system
sudo nano /etc/systemd/system/odoo14.service
- add this statement on odoo14.service
and save (Ctrl+X => Yes (Y) => Enter
[Unit] Description=Odoo14 Requires=postgresql.service After=network.target postgresql.service [Service] Type=simple SyslogIdentifier=odoo14 PermissionsStartOnly=true User=odoo14 Group=odoo14 ExecStart=/opt/odoo14/myodoo14-venv/bin/python3 /opt/odoo14/odoo/odoo-bin -c /etc/odoo14.conf StandardOutput=journal+console [Install] WantedBy=multi-user.target
- add this statement on odoo14.service
-
dan nyalakan ulang service odoo kamu
sudo systemctl daemon-reload sudo systemctl enable --now odoo14 sudo systemctl status odoo14
-
kamu bisa cek service odoo dengan ini
sudo journalctl -u odoo14
-
selamat kamu telah berhasil install Odoo.
- kamu bisa cek di browser kamu dengan membuka localhost
URL http://127.0.0.1:8069
- kamu bisa cek di browser kamu dengan membuka localhost
- Thank For Attention -