FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Skip to end of metadata
Go to start of metadata

Yes, yes, I know, it's Windows, it's WAMP, it's difficult... but I want to run an Ushahidi instance offline, on the Windows machine that I take everywhere with me.  And that Windows machine is a 64-bit Windows 7 machine which just adds that little bit more complexity to the process.  Here's what I know so far.

The process:

  1. Install a WAMP server on your PC.  For my 64-bit machine, I have the 64-bit php5.3 version from http://www.wampserver.com/en/.   Because I'm using the 64-bit version, I also have to install Visual C++ libraries, e.g. "Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)" from http://www.microsoft.com/en-us/download/details.aspx?id=13523
  2. Fix Curl problem. This is a 64-bit issue: the Curl files that were included in WAMP don't work properly on 64-bit machines. Go to this blogpage, look for "fixed Curl extensions" (you need this - not the Curl files above them), and find the file for your WAMP's version of PHP.  There are 2 of these: get the one without nts in its title, e.g. for my WAMP server using PHP 5.3.13, that's php_curl-5.3.13-VC9-x64.zip.  Unzip that file, and you'll see a file called "php_curl.dll" in it.  Move php_curl.dll into directory c:/wamp/bin/php/php5.3.13/ext/ (you'll overwrite the existing copy of php_curl.dll, but that's okay).  You also need to enable Curl by uncommenting a line in two WAMP files (for reference, these are c:/wamp/bin/php/php5.3.13/php.ini and c:/wamp/bin/apache/apache2.2.22/php.ini in my copy of WAMP).
  3. Put Ushahidi into the WAMP directories. Download Ushahidi from http://download.ushahidi.com/.  Wamp will have created a directory c:/wamp (unless you told it to put the directory somewhere else); the place to put packages is in c:/wamp/www.  Put your ushahidi directory here - we'll assume that it's called c:/wamp/www/ushahidi
  4. Open a windows command prompt, and go to the Ushahidi directory (e.g. type 'cd c:\wamp\www\ushahidi' in the command prompt). Type “git submodule update --init” in the command prompt (or you’ll see ui_main.alerts etc instead of labels on the ushahidi main page). Note that this takes a while…
  5. Log out of Skype.  You need to do this because Skype interferes with the WAMP server, i.e. WAMP's "W" icon will go orange, but not green. You can restart Skype once you've started up WAMP…
  6. Start WAMP. IN Windows7, that's start menu->all programs->wamp server->start wamp server.  You'll see a little red "W" symbol appear on your toolbar (look at the bottom right hand side of your screen).  Click on it, to see the WAMP menu.
  7. Create the Ushahidi database. Click 'phpmyadmin' on the WAMP menu. Click the "databases" tab, then put you database name (make one up) after "create database" and click "create".
  8. Make the Ushahidi URLs work.  Ushahidi typically uses clean addresses like "http://www.yourushahidi.com/reports" rather than php addresses like "http://www.yourushahidi.com/index.php?kohana_uri=reports".  You need to: click 'Apache' on the WAMP menu, then 'apache modules'.  This gives you a list of modules.  Scroll down, find "rewrite_module" and click on "rewrite_module" to get a tick next to it.
  9. Install Ushahidi. Click 'localhost' on the WAMP menu, select 'ushahidi' under "Your Projects", and follow the Ushahidi install instructions.
  10. Make the Ushahidi work with localhost. Edit file wamp/www/yourushahidi/application/config/config.php - change the line "$config['site_domain'] = 'yourushahidi';" to "$config['site_domain'] = 'localhost/yourushahidi';". 

Things that can go wrong:

  1. Wamp says 'Aestan Tray Menu has stopped working.  This is a 64-bit problem. Fix: either install the 32-bit version of WAMP instead, or install the 64-bit version and the "Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)".
  2. Wamp starts, but the little "W" won't go green. Wamp fights Skype for a port. Fix: log out of Skype and try again. You can log back into Skype once the W has gone green.
  3. Ushahidi install window says "the Curl extension is disabled". Fix: replace the curl .dll file, as described above; check that curl is uncommented in both WAMP php.ini files (see above).
  4. Labels on ushahidi front page look wrong, e.g. Ui_main.alerts.  Fix: type “git submodule update --init” in a command window in the ushahidi directory.
  5. http://localhost/yourushahidi/reports gives you the message “Not Found. The requested URL /yourushahidi/reports was not found on this server.” but address http://localhost/Ushahidi_Web-wvspeed/index.php?kohana_uri=reports works fine. Fix: follow the instructions above to "make the ushahidi urls work".
  6. Your Ushahidi homepage looks weird - you can't see the map, and the text is all on the left-hand side.  Fix: follow the instructions above to "make the Ushahidi work with localhost".
  7. If you try to import the Zombie dataset into the ushahidi database, you might get an error that states, "You probably tried to upload too large file". To workaround this limit, you will have to increase values of upload_max_filesize, memory_limit and post_max_size in php.ini configuration file. It is also suggested the post_max_size and memory_limit need to be larger than upload_max_filesize.
  8. Other things go wrong. Fix: see Ushahidi wiki or post on the Ushahidi forum.