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:
- Apache web server (or any web server of your choice)
- PHP
- MySQL
You can install these packages with the following command:
sudo pacman -S apache php mysql
Getting Started
Download the latest version of LittleLink Custom from https://littlelink-custom.com/.
Extract the ZIP file to your desired location. It's recommended to extract it to your web server's document root directory.
Rename the
config-example.phpfile toconfig.phpand 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');Create a MySQL database for LittleLink Custom.
mysql -u root -pCREATE DATABASE littlelink_custom; GRANT ALL PRIVILEGES ON littlelink_custom.* TO 'username'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; EXIT;Import the database schema from
database.sqlto your newly created database.mysql -u username -p littlelink_custom < database.sqlChange ownership of the files to the web server user.
sudo chown -R http:http /path/to/littlelink_customRestart 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.