How to Install YOURLS in cPanel
"Your Own URL Shortener" ("YOURLS") is a free PHP tool you can install on your website to create your own shortened links, similar to the popular, tinyurl.com or bit.ly. If your website is MySite.com, for instance, a link to a long URL might be shortened to MySite.com/gsi2n with YOURLS. Installing it in cPanel requires a few configurations, but the process shouldn't take long.
Instructions
-
-
1
Download and unzip the latest YOURLS file from the YOURLS website. When you unzip the folder, it will open on your desktop.
-
2
Change the file name "config-sample.php" to "config.php".
-
-
3
Log into cPanel.
-
4
Click "MySQL Database Wizard."
-
5
Create a new database for YOURLS. You will have to give it a name, then create a username and password, and then click "Create New Database."
-
6
Return to the YOURLS folder. Right-click "config.php" and click "Open with -> Notepad."
-
7
Change the phrases "YOURLS_DB_NAME", "YOURLS_DB_USER", and "YOURLS_DB_PASS" to the database, username and password you just created. These will be in the first three lines of code.
-
8
Change "YOURLS_SITE" to your website address. This will be on the fifth line.
-
9
Hit "Save."
-
10
Return to cPanel and click "File Manager."
-
11
Double-click "public_http."
-
12
Click "Upload."
-
13
Select the YOURLS folder and click "Open." This will install YOURLS to your server. When you return to the main cPanel dashboard, you will see a YOURLS icon to let you add links to shorten your URLs.
-
1