How to Install LittleLink Custom on Manjaro

LittleLink Custom is a custom URL shortener that can be installed on your own web server. This tutorial will guide you through installing LittleLink Custom on your Manjaro machine.

Prerequisites

Before we begin, make sure your Manjaro system is up to date:

sudo pacman -Syu

You'll also need the following packages:

You can install these packages with the following command:

sudo pacman -S apache php mysql

Getting Started

  1. Download the latest version of LittleLink Custom from https://littlelink-custom.com/.

  2. Extract the ZIP file to your desired location. It's recommended to extract it to your web server's document root directory.

  3. Rename the config-example.php file to config.php and edit its contents according to your MySQL settings. You can use your preferred editor to do this.

    cd /path/to/littlelink_custom
    mv config-example.php config.php
    nano config.php
    
    $dbh = new PDO('mysql:host=localhost;dbname=littlelink_custom', 'username', 'password');
    
  4. Create a MySQL database for LittleLink Custom.

    mysql -u root -p
    
    CREATE DATABASE littlelink_custom;
    GRANT ALL PRIVILEGES ON littlelink_custom.* TO 'username'@'localhost' IDENTIFIED BY 'password';
    FLUSH PRIVILEGES;
    EXIT;
    
  5. Import the database schema from database.sql to your newly created database.

    mysql -u username -p littlelink_custom < database.sql
    
  6. Change ownership of the files to the web server user.

    sudo chown -R http:http /path/to/littlelink_custom
    
  7. Restart the web server.

    sudo systemctl restart httpd.service
    

Testing

Open your web browser and navigate to http://localhost/littlelink_custom. You should see the LittleLink Custom installation screen.

Follow the instructions on the screen to complete the installation. Once done, you should be able to use LittleLink Custom to create your own custom URL shortener.

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!