How to Install LittleLink Custom on Kali Linux

LittleLink Custom is an open-source URL shortening service that allows users to shorten URLs and track the clicks on the shortened links. In this tutorial, we will show you how to install LittleLink Custom on Kali Linux.

Requirements

Step 1: Install Required Packages

sudo apt-get update
sudo apt-get install -y apache2 curl git mariadb-server php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-xml

Step 2: Install Composer

sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Step 3: Download LittleLink Custom

sudo git clone https://github.com/MikeGajda/LittleLink-Custom.git /var/www/html/littlelink

Step 4: Install Dependencies

cd /var/www/html/littlelink
sudo composer install

Step 5: Configure Database

Create a new database and user for LittleLink Custom with the following commands:

mysql -u root -p
CREATE DATABASE littlelink;
CREATE USER 'littlelink'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON littlelink.* TO 'littlelink'@'localhost';
FLUSH PRIVILEGES;
exit;

Step 6: Configure LittleLink Custom

Copy the config.example.php file to config.php and edit it to match your database configuration:

cd /var/www/html/littlelink
sudo cp config.example.php config.php
sudo nano config.php

Step 7: Set Permissions

sudo chown -R www-data:www-data /var/www/html/littlelink
sudo chmod -R 755 /var/www/html/littlelink

Step 8: Restart Apache

sudo systemctl restart apache2

Step 9: Access LittleLink Custom

Open your web browser and visit http://localhost/littlelink to access LittleLink Custom.

Conclusion

In this tutorial, we showed you how to install LittleLink Custom on Kali Linux. You can now use LittleLink Custom to shorten URLs and track clicks on the shortened links.

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!