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.
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
sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
sudo git clone https://github.com/MikeGajda/LittleLink-Custom.git /var/www/html/littlelink
cd /var/www/html/littlelink
sudo composer install
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;
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
sudo chown -R www-data:www-data /var/www/html/littlelink
sudo chmod -R 755 /var/www/html/littlelink
sudo systemctl restart apache2
Open your web browser and visit http://localhost/littlelink
to access LittleLink Custom.
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!