Simple-URL-Shortener is an open-source URL shortening platform that can be easily installed on a Fedora server. In this tutorial, you will learn how to install Simple-URL-Shortener from GitHub on a Fedora server using the command-line interface.
Before installing Simple-URL-Shortener, you need to have the following:
sudo dnf install httpd mariadb mariadb-server
sudo systemctl start httpd mariadb.service
sudo systemctl enable httpd mariadb.service
sudo dnf install php php-mysqlnd mod_php
sudo dnf install git composer nodejs
sudo npm install -g sass
sudo git clone https://github.com/azlux/Simple-URL-Shortener.git /var/www/html/short
cd /var/www/html/short
sudo composer install
.env.example
file to .env
and configure the required database details by running the following command:sudo cp .env.example .env
sudo nano .env
.env
file by running the following command:sudo php artisan key:generate
sudo mysql -u root
CREATE DATABASE short;
CREATE USER 'short_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON short.* TO 'short_user'@'localhost';
FLUSH PRIVILEGES;
exit
.env
file again and update the database details with the created user and its password, then save and exit the file.sudo php artisan migrate
sudo chown -R apache:apache /var/www/html/short
sudo systemctl restart httpd
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
Congratulations, you have successfully installed Simple-URL-Shortener on your Fedora server! You can now access your new URL shortening platform by accessing your domain name in any web browser.
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!