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

  1. 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

  2. Connect to your VPS/server via SSH (Click here if you don't know how to use SSH)

  3. 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

  4. Download DoKlika platform script from Codecanyon store into your PC.

  5. Use FileZilla to connect to your VPS (use the new user doklika and its password, the port is 22).

  6. Using FileZilla, upload the .zip file into the home directory of the new user (e.g. /home/doklika/).

  7. Extract the zip file using the following command: unzip codecanyon-*.zip

  8. Make a copy of .env.example file (in the Script folder), and name it .env

  9. Edit .env file and put your information there (Something like this). Notes: - Put your Envato Purchase Code at ENVATO_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).

  10. Change the example.com domain with yours in Caddyfile.

  11. 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

  12. Create an admin account/user for DoKlika: docker exec -it doklika python3 manage.py createsuperuser

  13. Restart DoKlika container: docker-compose restart doklika caddy

  14. Now open in your browser the following links: - DoKlika home page: https://your-domain.com - PHPMyAdmin: https://your-domain.com:9090

  15. After finishing the installation, ensure to do some initial configurations.

You can use your database credentials (mentioned in .env file) to login into your PHPMyAdmin.

A free SSL certificate is going to be installed for your domain after the installation.

Last updated