If you are looking for an alternative to Delicious (Social bookmarking) and/or simply to share interesting links you found with your family, friends, your community or just any user, Shaarli is an open source and can be installed on your own server in an easy manner.
Thanks to its minimalist design, Shaarli is fast and easy to use. You can easily save URL and set them as private or public, you can also save the title, description,…assign tags, automatically get the thumbnails for various services, (Youtube, flickr,…),vimeo, dailymotion…) and many more.
They also have a “shaare” button compatible with Firefox, Opera, Chrome and Safari that allow you to quickly save the link into your Shaarli instance. (Nice!)And they have shared a public instance to let you try. (no available admin interface tho)Interested? Let’s see how to install it!
You basically only need Apache (or Ngnix, etc..) and PHP (>5.1). If you don’t have it, please follow my tutorial on how to install a LAMP server.
1) Download their latest archive (Or simply clone their repository) in your /var/www
cd /var/www wget https://github.com/sebsauvage/Shaarli/archive/master.zip
2) Uncompress the archive and remove the zip
unzip master.zip mv Shaarli-master/ shaarli rm master.zip
3) Change folder owner to apache user
chown -R www-data:www-data /var/www/shaarli
Looking for creating a subdomain like sha.domain.tld or dedicated domain to access to your Shaarli instance? You can create a dedicated virtualhost (vhost) to do so. You could even force SSL/TLS to improve the security.
What you will need:
1) Create a A redirection in your DNS server/registrar with sha.domain.tld to your IP
2) Have SSL certificate ready. If not you can read this tutorial. (Optional)
3) Create your virtualhost as following:
In /etc/apache2/sites-enabled/, create a file called shaarli (In root):
and paste the following content:
<VirtualHost *:80> ServerAdmin email@example.com ServerName sha.domain.tld Redirect / https://sha.domain.tld </VirtualHost> <IfModule mod_ssl.c> <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/ssl/certs/myblog.pem SSLCertificateKeyFile /etc/ssl/private/myblog.key ServerAdmin firstname.lastname@example.org ServerName sha.domain.tld DocumentRoot /var/www/shaarli <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/shaarli> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> </IfModule>
Adapt the content (Servername, webmaster, SSL certificate and directory, …).
When done, save the file (CTRL+X then Yes) and reload apache: (In root)
You should now be all set and ready to use Shaarli!
If you got some good links to share, you can post your shaarli instance in the comments!