
When lifestreaming services come under the spotlight, Storytlr is definitely a promising one. They started their journey not more than a year ago, was loved by many other people out there, and decided to shutdown! Ok, that makes sense when the economy was so scary lately, but the good thing is that – they didn’t just announced “We are shutdown, and we don’t care what the fuck had you built with us”. Those brilliant people behind Storytlr did something very much appreciable, they made their brain child open source. I really loved that. The source code is available to download from their google code project page.
Other than Storytlr, there is another open source life streaming service available at this moment which is “pubwich” and is available to download from http://pubwich.org
My post is about how you can grab the source code of Storytlr and set it up in your own webserver. I’ve seen many people were asking on the mailing list an their news blog about how to install this one successfully. So I decided to give it a shot and install it. Follow these steps and you are good to go
#1 Add a wildcard A record pointing to your server’s IP
#2 If you are hosted in VPS, and you have multiple domains hosted, you may want to create a Virtual Host with the following entries. I just assumed that your document root for Storytlr will be at “/var/www/storytlr”
<VirtualHost *:80>
ServerName domain.tld
ServerAlias domain.tld
ServerAdmin admin@domain.tld
DocumentRoot /var/www/storytlr
<Directory /var/www/storytlr>
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
Dont forget to restart/reload your web server after this.
#3 change your current workign directory to /var/www/storytlr and download the latest available storytlr from google code, and then extract it
wget http://storytlr.googlecode.com/files/storytlr-0.9.2.tgz tar -zxvf storytlr-0.9.2.tgz
Now you will see some directories in the same path.
#4 Create a mysql database named “storytlr” (You can name it whatever, just dont forget to change the DB settings accordingly in the config. I will be discussing this later) – also create a user for this db and grant it all permission for this db.
mysql> create database storytlr; mysql> grant all on storytlr.* to 'storytlr'@'localhost' identified by 'password'; mysql> flush privileges;
#5 Now you need to import storytlr’s schema into it. change your working directory to /var/www/storytlr/protected/install and import the database.sql into the recently created “storytlr” db
mysql -u storytlr -p storytlr < database.sql
#6 You need to install a PECL extension “tidy” to make Storytlr work properly. So if you dont have that installed on your server, you can do this using the following command
apt-get install php5-tidy or pecl install tidy
if you install it via “pecl” then dont forget to add this line “extension=tidy.so” in your php.ini. Also in this case, make sure that put tidy.so inside the directory which is mentioned in the php.ini as “extension_dir”
restart your webserver
/etc/init.d/apache2 restart
#7 Now you need to add write permission to some directories that storytlr needs. Change your workign directory to /var/www/storytlr/protected and apply the following commands
chmod 0755 logs chmod 0755 feeds chmod 0755 temp chmod 0755 upload
#8 We are almost done. Now change your working directory to /var/www/storytlr/protected/config and copy the config.ini.sample as config.ini. Edit this config.ini – you need to make various changes here.
#line number 1: if you have PDO and PDO_MYSQL installed in your machine, leave it as is – or else change it to “MYSQL” instead of “PDO_MYSQL”
Change DB settings. Add appropritae uername, db name and password there
Change line number 14, 15, 16 and remove the comments (the semicolon
from in front of them. Its better to add caching.
Change line number 19 and add your host name. You may also change the timezone to your working one.
Change line # 25, set app.closed = 0. You want to enable registration for your visitors, right?
Comment out line number 28 (app.user = admin) and add a semicolon in front of it
Change line #39 (flickr.api_key=) – add your Flickr API key there. This is optional
You may also change line number 57 and add a google map api key for your domain. This is also optional
#9 Last step, create /tmp/cache directory and add write permission to it
Done and Enjoy!


1.
2.
3.
4.
5. 












