How to Install Kleeja on Manjaro
In this tutorial, we will guide you through the steps to install Kleeja file upload management system on the Manjaro operating system using Apache web server.
Prerequisites
Before proceeding with the installation, you need to ensure that a few prerequisites are met:
- A Manjaro system with a user account having sudo privileges
- Apache web server installed and running on your system
- PHP 7.2 or higher version installed on your system
- MariaDB or MySQL database server installed on your system
Step 1: Download Kleeja
To start the installation, we have to download Kleeja. You can get the latest version of Kleeja by visiting the official website https://kleeja.net/download/
Once you have downloaded the package, open the terminal and navigate to the Downloads directory:
cd ~/Downloads
Step 2: Extract Kleeja Package
After navigating to the downloads directory, extract the downloaded package using the following command:
unzip kleeja-2.4.0.zip
This will extract the contents of the package to a new directory named kleeja-2.4.0 in the Downloads directory.
Next, move the extracted directory to the web root directory of your Apache server, which is usually located at /var/www/html/
sudo mv kleeja-2.4.0/ /var/www/html/kleeja
Step 3: Create Kleeja Database & User
Before we proceed with the Kleeja installation, we need to create a new database and user for Kleeja to access. You can create them using the following commands:
mysql -u root -p
This will open the MySQL prompt. Now execute the following commands to create a new database and user:
CREATE DATABASE kleeja;
CREATE USER 'kleeja_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON kleeja.* TO 'kleeja_user'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
Make sure to replace your_password with a strong password for the user.
Step 4: Configure Kleeja
Now the package has been extracted, and the database and user have been created. It's time to configure Kleeja.
Navigate to the Kleeja directory in the web root:
cd /var/www/html/kleeja
Make the cache and uploads directories writable with the following commands:
sudo chmod 777 cache/
sudo chmod 777 uploads/
Next, copy the config.default.php file to config.php:
sudo cp config.default.php config.php
Now open the config.php file in a text editor and update the following database details:
define('DB_HOST', 'localhost');
define('DB_NAME', 'kleeja');
define('DB_USER', 'kleeja_user');
define('DB_PASS', 'your_password');
Step 5: Setup Kleeja
After completing the configuration, go to the Kleeja installation page by browsing to http://localhost/kleeja/install/ from your web browser:
- Accept the license agreement
- Check that all required modules are enabled
- Click
Proceed to next step - Enter your database details and click
Proceed to next step - Create an administrator account for the Kleeja site
- Click
Proceed to next step - Enter your website details and click
Proceed to next step - Remove the
installdirectory using the following command:
sudo rm -rf /var/www/html/kleeja/install/
Step 6: Test Kleeja
That's all! Now you can test the installation by browsing to http://localhost/kleeja/ from your web browser.
You should now see the Kleeja homepage, and you can log in using the administrator credentials created during the installation.
Congratulations! You have successfully installed Kleeja on Manjaro.