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 y.sund.org as my own URL shorting service, but with gandi.net 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 gandi.net as the registrar this time and found them better than netsol.com 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: your.server.name
Options FollowSymLinks MultiViews
allow from all
CustomLog /var/log/apache2/your.server.name/access.log combined
Then to enable it, run:
Then you should be able to login to your YOURLS site.
UPDATE: I changed over to use sund.la