My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
SetupGuide  
How to download dabr and get it running
Featured, Phase-Deploy
Updated Nov 28, 2010 by david.carrington

Installation

Step 1: Get the code

Instructions are available on the Source checkout page for how to download a copy of the code. There are also zipped up copies of the source on the Downloads tab - please be aware those might be out of date though.

Step 2: Get a web server

  • Dabr has been designed to work on Apache, with PHP 5.2+ (because it uses the json_decode() function).
  • A great package for running a test server on a Windows box is XAMPP (or XAMPP Lite)
  • You need to copy all the files onto the server for it to work.
  • No database is needed.

Server Requirements

  • PHP 5.2+
  • curl PHP module
  • mcrypt PHP module
  • mod_rewrite apache module
  • Your server must be able to access Twitter.com

Step 3: Configure dabr

  1. Rename config.sample.php to config.php
  2. Change ENCRYPTION_KEY in config.php to a random string of gibberish, maximum 52 characters.
  3. BASE_URL is worked out automatically, but can be hard coded if you prefer.
  4. FLICKR_API_KEY is optional. If filled in, it enables Flickr thumbnails.
  5. If you want to secure your installation, consider making it invite only

Step 4: Try it!

Dabr should now be up and running. There's no other configuration to do.

Comment by steve.ce...@gmail.com, Aug 13, 2009

I had to modify the RewriteRule? in .htaccess to:

RewriteRule ^(.+)$ /index.php?q=$1 [L,QSA]
Comment by tomasen, Aug 18, 2009

if anyone need nginx rewrite rule:

rewrite "^/([^\.]*)$" /index.php?q=$1 last;

Comment by zho...@gmail.com, Mar 21, 2010

@mapengfei I use this for lighttpd:

  url.rewrite-once = (
    "^/(.*)$" => "/index.php?q=$1"
  )
Comment by zho...@gmail.com, Apr 7, 2010

to correct my previous comment, it will report 404 when searching for something.

Here's the dirty fix:

  url.rewrite-once = (
    "^/(.*)\?(.*)$" => "/index.php?q=$1&$2",
    "^/(.*)$" => "/index.php?q=$1"
  )
Comment by huacn...@gmail.com, Aug 16, 2010

for Nginx + php-fcgi:

    server {
      listen 80;
      server_name dabr.mysite.com;

      root /var/www/dabr;

      location ~* ^(/images|/favicon.ico) {
        expires max;
      }

      rewrite "^/([^\.]*)$" /index.php?q=$1 last;
      location ~ \.php$ {
        include /etc/nginx/conf/fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param  SCRIPT_FILENAME  /var/www/dabr/$fastcgi_script_name;
      }
    }
Comment by aker...@freenet.de, Nov 28, 2010

Step 3. should contain a notice that an own Twitter API key is necessary while all the others are optional.

Comment by yoga.pra...@gmail.com, Jan 20, 2011

I'm setup dabr under subdirectory of wordpress root, and I should add this line below in .htaccess to make dabr work :

RewriteBase /subdirectory-name
Comment by abhisek....@gmail.com, Mar 25, 2011

You should have contained a notice about Twitter API key being necessary. That would save a lot of time for a lot of people. Took me a while before I could figure out

Comment by project member david.carrington, Aug 9, 2011

Please do not spam this page. Only English comments that benefit others will be kept. No support will be given on this page.

Comment by michysu...@gmail.com, Apr 30, 2012

Rewrite functions wind up giving me a 404 error.


Sign in to add a comment
Powered by Google Project Hosting