Here’s a intro of YOURLS and my implementation of it at

From the README at the github repo:

YOURLS is a set of PHP script that will allow you to run your own URL shortener. You’ll have full control over your data, detailed stats and analytics, plugins, and more. It’s free.

Initially, I had used as my own URL shorting service, but with I found a good price for a domain name in the Isle of Man so I was able to shorten URLs even further. I used as the registrar this time and found them better than as you have version control for your hosts config. Although, this will seem like I did all of this in one night, I had to wait overnight once I registered the new domain name for it to propagate out to the internet.

Installing YOURLS is straight forward with the instructions. I did need to install a few packages:

apt-get install php5-gd php5-mysql libapache2-mod-php5

For the apache conf, put the following in /etc/apache2/sites-enabled:

#file name:


DocumentRoot /var/

Options FollowSymLinks
#AllowOverride None
Options FollowSymLinks MultiViews
#AllowOverride None
Order allow,deny
allow from all

CustomLog /var/log/apache2/ combined
ErrorLog /var/log/apache2/

Then to enable it, run:


Then you should be able to login to your YOURLS site.

UPDATE: I changed over to use

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: