Installation of Kleeja on Debian Latest

Introduction

Kleeja is a free open-source PHP file upload and management tool, designed to be easily customizable and integrated into any website. In this tutorial, we will guide you through the process of installing Kleeja on Debian, the latest version of Debian.

Prerequisites

Before proceeding, ensure that you have the following:

Step 1 - Download and Extract Kleeja

The first step in installing Kleeja is to download its latest version from its official website. To do so, follow these steps:

  1. Open the terminal on your Debian system.
  2. Navigate to the directory where you want to download and install Kleeja. For instance, run cd /var/www/ to move to the Apache webroot directory.
  3. Download the latest version of Kleeja from its website using the wget command as shown below:
$ wget https://github.com/kleeja-official/kleeja/releases/download/v3.0.6/kleeja_3.0.6.zip
  1. Extract the downloaded file using the unzip command as shown below:
$ unzip kleeja_3.0.6.zip

The above command will create a new directory named kleeja in the current directory.

Step 2 - Configure Kleeja

After extracting Kleeja, you must make some configuration changes before you can use it. Follow the steps described below:

  1. Rename the config.php.new file to config.php using the following command:
$ mv kleeja/includes/config.php.new kleeja/includes/config.php
  1. Open the newly renamed config.php file using any text editor of your choice:
$ nano kleeja/includes/config.php
  1. Configure the following parameters:

    $SQLTYPE     = 'mysqli'; // Change to your database engine (e.g., mysql or postgresql)
    $SQL_HOST    = 'localhost'; // Database server host
    $SQL_USER    = 'kleeja'; // Database username
    $SQL_PASS    = 'StrongPassword'; // Database password
    $SQL_DB    = 'kleeja'; // Database name
    $SQL_PREFIX  = '__your_database_prefix'; // Database prefix. Change it if you want to use a custom one
    $filesname   = 'files'; // Kleeja files directory name, Default: 'files'
    $foldername  = 'Kleeja'; // A folder name in your server, change it to your desired name.
    

    Don't forget to change the values inside the apostrophes to your desired variables in your environment.

  2. Save and close the file.

Step 3 - Upload the Files to the Web Server

After configuring Kleeja, you need to upload the files to the web server. To do so, follow the steps below:

  1. Move the kleeja directory to your webserver's document root directory. For instance:
$ mv -R kleeja /var/www/html/

Here, we move the kleeja directory to /var/www/html/ path. Make sure your document root path is correct.

  1. Change the permissions of the files directory to 777 so that Kleeja can write files to it:
$ chmod 777 /var/www/html/kleeja/files

This command will allow read, write, and execute permission on the files directory.

  1. Restart the web server:
$ sudo systemctl restart apache2

Step 4 - Complete the Installation

The final step is to complete the installation process using your web browser. Follow the steps described below to do so:

  1. Open your web browser and enter your server's IP address or domain name followed by the directory name (or folder name) you previously created, which in our example is /kleeja. For instance, http://your-server-ip-address/kleeja or http://your-domain-name/kleeja.
  2. You will be directed to the Kleeja installation wizard. Follow the on-screen instructions to complete the installation process.
  3. Once the installation is complete, remove the install directory from your Kleeja directory using the following command:
$ rm -rf /var/www/html/kleeja/install/

Congratulations! You have successfully installed Kleeja on your Debian system. You can now log in to the Kleeja's admin panel and begin configuring Kleeja to fit your needs.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!