LittleLink Custom is a self-hosted URL shortener that allows you to create your own custom branded short links. This tutorial will guide you through the steps of installing LittleLink Custom on EndeavourOS Latest.
sudo pacman -S apache
sudo pacman -S mysql
or
sudo pacman -S mariadb
sudo pacman -S php php-apache
sudo pacman -S composer
sudo pacman -S git
git clone https://github.com/philipbrown/littlelink.git
cd littlelink
composer install
Create a new database with a name of your choice and create a new user that has all the privileges to the database. Then, update the .env
file with the database connection details:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
php artisan key:generate
php artisan migrate
Create a new Apache virtual host for LittleLink Custom:
sudo nano /etc/httpd/conf/extra/littlelink.conf
Add the following configuration:
<VirtualHost *:80>
ServerName your_domain_name
DocumentRoot /path/to/littlelink/public
<Directory /path/to/littlelink/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/littlelink_error.log
CustomLog /var/log/httpd/littlelink_access.log combined
</VirtualHost>
Replace your_domain_name
and /path/to/littlelink
with your own values.
sudo systemctl restart httpd
Set the necessary write permissions:
sudo chown -R http:http /path/to/littlelink
sudo chmod -R 755 /path/to/littlelink
Open your web browser and go to: http://your_domain_name/
You should see the LittleLink Custom homepage.
Congratulations! You have successfully installed LittleLink Custom on EndeavourOS Latest.
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!