Installation (on Linux/VPS)
Server Requirements
DoKlika platform is built using Django framework, a high-level Python web framework, which has a few system requirements to meet:
Python 3.7 or higher.
VPS/server requirements:
Linux OS (e.g. Ubuntu, Debian)
At least 1GB RAM & 1 CPU core.
Supported databases
DoKlika supports various databases out of the box, by default DoKlika is using sqlite3 database. You can choose any of these:
MySQL (recommended)
PostgreSQL
SQLite
SQL Server
Installation Guide Video
To install DoKlika platform on your main domain, ensure that your domain is pointing to your server/VPS, you can do so by adding the following DNS Record in your hosting provider:
TYPE HOST VALUE A @ your-server-IP
To install DoKlika on a subdomain (e.g.
https://sub.domain.com
) use these DNS Records instead:TYPE HOST VALUE A sub your-server-IP
Connect to your VPS/server via SSH (Click here if you don't know how to use SSH)
For security, you need to create another user in your VPS (using
root
user not recommended), and installing the required dependencies:sudo apt update
sudo apt install unzip docker.io docker-compose -y
sudo useradd -m -s /bin/bash doklika
sudo usermod -aG sudo,docker doklika
Set a password for the new user (DON'T FORGET IT!):sudo passwd doklika
sudo su - doklika
Download DoKlika platform script from Codecanyon store into your PC.
Use FileZilla to connect to your VPS (use the new user
doklika
and its password, the port is 22).Using FileZilla, upload the .zip file into the home directory of the new user (e.g.
/home/doklika/
).Extract the zip file using the following command:
unzip codecanyon-*.zip
Make a copy of
.env.example
file (in the Script folder), and name it.env
Edit
.env
file and put your information there (Something like this). Notes: - Put your Envato Purchase Code atENVATO_PURCHASE_CODE
in.env
file (Where Is My Purchase Code?). - Ensure to put your Purchase Code and Your domain. - Put database credentials and it's going to create a database for you automatically (no need to create one yourself).Change the
example.com
domain with yours inCaddyfile
.Then run the following commands to perform the installation (line by line):
cd $HOME/Script
docker-compose up -d
sudo rm -fr $HOME/Script/static
docker exec -it doklika bash /app/docker_install.sh
Create an admin account/user for DoKlika:
docker exec -it doklika python3 manage.py createsuperuser
Restart DoKlika container:
docker-compose restart doklika caddy
Now open in your browser the following links: - DoKlika home page: https://your-domain.com - PHPMyAdmin: https://your-domain.com:9090
After finishing the installation, ensure to do some initial configurations.
Last updated