flowing motion

Ushahidi is working!

Posted on: March 16, 2010

TEMPORARY POST:  I couldn’t post this on the forum and it is late.  So here it is for people working in the next few hours.

FIRST, please note that I am no expert.  Just stubborn and two days of searching found me this post.  I thought I had tried this before but evidently something has changed and this time it has worked.


1.  The map on my main page was not showing incidents.
2.  I was getting cache errors when I used tabs to approve/verify incidents.


1.  The problem is in the .htaccess file as usual
2.  I found this [url= http://webdevnetwork.co.uk/category/kohana/%5D link[/url] . It links through to other sites. Coders might like to check this out for us.
3.  Precipitating Condition:  Kohana running on some versions of Apache servers
4.  Quoting now from the above link.

No input file specified’ – Kohana/htaccess Error
November 1st, 2009

When using .htaccess to remove index.php from urls in Kohana sometimes you may find yourself getting a “No Input File Specified” error. This had my head in a pickle for quite some time until I found this post.
If PHP is running on Apache as a CGI module then Apache won’t support “PATH_INFO” which is used inside Kohana (CodeIgniter too).
There’s a simple fix, edit the .htaccess file and replace the last line like so:

#RewriteRule .* index.php/$0 [PT,L]
RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L]


1.  For other noobes lik me, first make a copy of your existing .htaccess file with a different name such as original.htaccess.  (Just in case you want to go back to it.)

2  Open the .htaccess file in Wordpad (not Notepad which lays out in a continuous thread.)  Be careful. Detail matters.

3. Read down the file and note that our .htaccess has some stuff after this Rewrite rule.  We are not working on our last line. Look For the Rewrite rule similar to the first line of the couplet above.

4. Now edit. Add a # to the existing Rewrite Rule to turn it into a comment.

5.  Then cut and paste the second line of from the couplet above.  It should look like the couplet above.

6.  Save and run.


I hope so.  A lot of my bugs a gone. I can see a few left but I can see my incidents on the front page (yay) and I am basically functional.


I don’t know if this will work without changing the API.  I had already replaced mine.

I am running on ‘localhost’ so when I went to get a Google API, I typed in http://localhost/mysitename.

Again for noobes, on my own computer mysitename is at c://wamp/www/mysitename and all the Ushahidi files are in that folder.  e.g., c://wamp/www/mysitename/application.


# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /mysitename/

# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) – [F,L]

# Prevent schedulers from being accessed remotely
RewriteCond %{REMOTE_ADDR} !^$
RewriteRule ^.*/scheduler/.*$ – [F,L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

`# Rewrite all other URLs to index.php/URL`
# RewriteRule ^(.*)$ index.php/$0 [PT,L]
RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L]

# Protect the htaccess from being viewed
<Files .htaccess>
order allow,deny
deny from all`

# Don’t show directory listings for URLs which map to a directory.
Options -Indexes


The problem is caused by Kohana running on some Apache servers and is fixed by modifying a Rewrite rule in your .htaccess file.

Check Lines 2, 4 from top are correct (carefully) and edit lines 8&9 from the bottom (not counting blank lines).


It’s close to midnight here.  I’ll check in first thing in the morning to see if I can help anyone who is still stuck.


Thanks eyedol for your quick response to our tweet today and to Charlie for working together this evening!  Hope to see your on Dreamhost soon!

Enhanced by Zemanta

1 Response to "Ushahidi is working!"


Just applied this changes to .htaccess that you posted above and the issue is fixed. So glad that the Ushahidi install is finally working. Was stuck with this prob for months!! Thanks.

Hoping I don’t come across another bug now, lets see 🙂

And ya, I shouldn’t have deleted those lines from the .htaccess file, but being the noob that I am … and desperate to make the Ushahidi install work.. I tried by deleting the lines.. Stupid me! 😛

Yes, I’m installing it on dreamhost.

If I may ask, what are you working on with Ushahidi?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

AddThis Social Bookmark Button


AddThis Social Bookmark Button

Last Twitter

  • RT @katecrawford: AI is rapidly becoming a new, privately-owned infrastructure - and the bias and safety issues urgently need more research… 4 hours ago
Creative Commons License
All work on this blog is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
%d bloggers like this: