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:
- A Debian or Debian-based system with root privileges.
- A web server such as Apache or Nginx installed.
- A database server such as MySQL or MariaDB installed.
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:
- Open the terminal on your Debian system.
- 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. - Download the latest version of Kleeja from its website using the
wgetcommand as shown below:
$ wget https://github.com/kleeja-official/kleeja/releases/download/v3.0.6/kleeja_3.0.6.zip
- Extract the downloaded file using the
unzipcommand 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:
- Rename the
config.php.newfile toconfig.phpusing the following command:
$ mv kleeja/includes/config.php.new kleeja/includes/config.php
- Open the newly renamed
config.phpfile using any text editor of your choice:
$ nano kleeja/includes/config.php
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.
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:
- Move the
kleejadirectory 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.
- Change the permissions of the
filesdirectory to777so 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.
- 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:
- 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/kleejaorhttp://your-domain-name/kleeja. - You will be directed to the Kleeja installation wizard. Follow the on-screen instructions to complete the installation process.
- Once the installation is complete, remove the
installdirectory 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.