How to Install Kleeja on EndeavourOS Latest

Kleeja is a free and open-source file-sharing script that allows you to host and share files on your website. It is easy to install and configure, and it provides a variety of features such as user management, multiple languages, plugins, and more.

In this tutorial, we will guide you through the installation process of Kleeja on EndeavourOS Latest using Apache, PHP, and MySQL/MariaDB. We will assume that you have a fresh installation of EndeavourOS Latest and we will use the command line to install the necessary software.

Step 1: Install Apache Web Server

Apache is a widely used web server that helps to serve web pages and applications to users. To install Apache on EndeavourOS Latest, open a terminal and type the following command:

sudo pacman -S apache

This command will install the latest version of Apache with its dependencies. Once the installation completes, you can start and enable the Apache service by typing:

sudo systemctl start httpd
sudo systemctl enable httpd

You can verify that Apache is running correctly by opening your web browser and entering your EndeavourOS Latest's IP address in the URL field. If you see the default Apache page, then the installation has been successful.

Step 2: Install PHP

PHP is a popular programming language that is used to create web pages and dynamic content. To install PHP on EndeavourOS Latest, we need to install the PHP package along with some necessary modules. Open a terminal and type the following command:

sudo pacman -S php php-apache

This command will install the latest version of PHP along with the Apache module. Once the installation is complete, we need to edit the PHP configuration file to enable some important modules. Open the file /etc/php/php.ini with your favorite text editor and add the following lines:

extension=pdo_mysql
extension=mysqli

These lines will enable the MySQL and MySQLi extensions, which are required for Kleeja. Save the file and exit.

Step 3: Install MariaDB

MariaDB is a fork of the MySQL database server, and it is a popular choice for web applications. To install MariaDB on EndeavourOS Latest, open a terminal and type the following command:

sudo pacman -S mariadb

This command will install the latest version of MariaDB along with some necessary dependencies. Once the installation completes, we need to secure our MariaDB installation by running:

sudo mysql_secure_installation

This command will prompt you to set a root password, remove anonymous user accounts, and more. Follow the on-screen instructions to complete the setup.

Step 4: Configure Kleeja

Now that we have installed all the necessary software, we can proceed to install Kleeja itself. Download the latest version of Kleeja from its official website https://kleeja.net/ and extract it to the Apache root directory:

sudo wget https://github.com/kleeja-official/kleeja/archive/master.tar.gz
sudo tar -xzvf master.tar.gz
sudo mv kleeja-master/* /srv/http/localhost/
sudo chown -R http:http /srv/http/localhost/

Make sure to adjust the path to your Apache root directory if necessary. Next, we need to create a new database and user for Kleeja in MariaDB. Open a terminal and log in to MariaDB as the root user:

sudo mysql -u root -p

Enter the root password that you set during the installation. Once you are logged in, create a new database and user with the following commands:

CREATE DATABASE kleeja;
CREATE USER 'kleejauser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON kleeja.* TO 'kleejauser'@'localhost';
FLUSH PRIVILEGES;

Replace password with a strong password of your choice. These commands will create a new database called kleeja, a new user called kleejauser, and give that user full access to the kleeja database.

Now, we need to configure Kleeja to use our new database. Open the file /srv/http/localhost/includes/config.php with your favorite text editor and edit the following options:

$dbuser='kleejauser';
$dbpass='password';
$dbname='kleeja';
$dbprefix='klj_';

Replace password with the password that you set for the kleejauser user, and adjust the other options as needed. Save the file and exit.

Step 5: Access Kleeja

Now that Kleeja is configured, we can access it by opening our web browser and navigating to our EndeavourOS Latest's IP address. You should see the Kleeja installation page, which will guide you through the rest of the setup process.

Follow the on-screen instructions to complete the installation. Once you are finished, you can log in to the Kleeja admin panel by navigating to /admin/ in your web browser.

Congratulations! You have successfully installed Kleeja on EndeavourOS Latest using Apache, PHP, and MariaDB. You can now host and share files on your website.

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!