Step 1: Install Apache and PHP
First, make sure you have Apache web server and PHP installed on your Ubuntu server. You can install both by running the following command:
sudo apt-get install apache2 php libapache2-mod-php
After the installation, restart the Apache web server:
sudo systemctl restart apache2
Step 2: Download Kleeja
Next, download the latest version of Kleeja from the official website at https://kleeja.net/. You can download it using wget command:
wget https://github.com/kleeja-official/kleeja/releases/download/v2.3.0/Kleeja-2.3.0.zip
Then, install unzip utility to extract the downloaded content:
sudo apt-get install unzip
Finally, unzip the downloaded Kleeja package:
unzip Kleeja-2.3.0.zip
Step 3: Move Kleeja files to the Apache Document Root
Once you've extracted the Kleeja package, move its content to Apache's document root directory (/var/www/html/
):
sudo mv Kleeja-2.3.0/* /var/www/html/
Step 4: Set up Permissions
After moving the files to the document root, you need to set up permissions for Kleeja to work correctly.
sudo chmod -R 755 /var/www/html/
sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R 777 /var/www/html/images/
sudo chmod -R 777 /var/www/html/uploads/
Step 5: Create Kleeja Database and User
Next, create a new database and user for Kleeja using MySQL. To do this, type the following command into the terminal:
mysql -u root -p
After prompting for a password, log in and create the database account:
CREATE DATABASE kleejadatabase;
CREATE USER 'kleejauser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON kleejadatabase.* TO 'kleejauser'@'localhost';
FLUSH PRIVILEGES;
exit;
Step 6: Install Required PHP Extensions
Kleeja neeeds several extensions to function properly.
sudo apt install php7.4-xml php7.4-curl php7.4-zip php7.4-gd
Step 7: Complete Kleeja Installation
In your browser, navigate to your server's IP address or domain name. You will see the Kleeja installer page asking for your database information.
Enter the following information:
- Database Host: localhost
- Database Name: kleejadatabase
- Database User: kleejauser
- Database Password: password
Click on "Test Connection" to make sure that Kleeja can access the database.
Complete the installation by following the instructions presented on-screen.
Conclusion
Congratulations, you have successfully installed Kleeja on your Ubuntu server. You can now start using it to upload and manage files.
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!
Alternatively, for the best virtual desktop, try Shells!