Project Phil Documentation
Sign in
On this page

Install Link Shortener

This guide walks you through installing Link Shortener on your own server. By the end, you will have the application uploaded, configured, migrated, and running.

Prerequisites

  • A VPS or dedicated server running Linux (our guides use and recommend Debian/Ubuntu)
  • A domain name is preferred, such as www.example.com, but the application can also run on the server’s IP address and port
  • A Discord account
  • Nginx (web server), MySQL (database), and Node.js with NPM installed on the server

Tip

If the required software is not installed, follow our LEMN Stack Install guide first.

Step 1 — Upload the files

Download the latest version of Link Shortener from the Project Phil website.

  1. Download and extract the zip file to your computer.
  2. Upload the Link-Shortner folder to your server.

For example:

/home/Link-Shortner

The application entry point should be located at:

/home/Link-Shortner/index.js

Before starting the application, configure the config.js file.

Open the configuration file:

nano /home/Link-Shortner/config.js

Fill in all required configuration values and save the file.

Step 3 — Install dependencies and run migrations

Change to the Link Shortener directory:

cd /home/Link-Shortner

Install the required Node.js packages:

npm install

Once the installation has completed, run the database migrations:

npm run db:run

Wait for the migrations to complete successfully before continuing.

Tip

We recommend using a Screen Session so the application continues running after the terminal is closed.

Start Link Shortener:

node .

Supporting Docs

Written by !RAB Last updated 1 Dec 2026 1 min read

Discussion 0

No comments yet. Sign in with Discord to start the conversation.