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
- Rename config.sample.php to config.php
- Change ENCRYPTION_KEY in config.php to a random string of gibberish, maximum 52 characters.
- BASE_URL is worked out automatically, but can be hard coded if you prefer.
- FLICKR_API_KEY is optional. If filled in, it enables Flickr thumbnails.
- 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.
I had to modify the RewriteRule? in .htaccess to:
if anyone need nginx rewrite rule:
rewrite "^/([^\.]*)$" /index.php?q=$1 last;
@mapengfei I use this for lighttpd:
url.rewrite-once = ( "^/(.*)$" => "/index.php?q=$1" )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" )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; } }Step 3. should contain a notice that an own Twitter API key is necessary while all the others are optional.
I'm setup dabr under subdirectory of wordpress root, and I should add this line below in .htaccess to make dabr work :
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
Please do not spam this page. Only English comments that benefit others will be kept. No support will be given on this page.
Rewrite functions wind up giving me a 404 error.