Thank you George for the clarification, a couple of things:

When you select OSM as Map Provider, the Map API key field is displayed which caught me off guard. So I switched to Google Maps and got a key for http://localhost, that key should have been persisted into the database as one of the configuration settings. My assumption is that it did, when I went to the homepage map loads but big message box appears with error "Error in loading GML file http://localhost/ushahidi/json/?z=13&c=0&s=1293829200&e=1296507599" so not sure if the cause is key not being persisted in the DB

Will post any other issues i encounter..



On Wed, Jan 5, 2011 at 10:55 PM, george chamales <george@...> wrote:
Hi Erik,

Great info - I've got a document that I use whenever I'm doing an Ushahidi install that covers the main things I do to ensure the install works.
The installer requires mcrypt-
Here's the list of packages that I install when using ubuntu:  

sudo apt-get install apache2 php5 mysql-server-5.1 php5-curl php5-mcrypt php5-mysql php5-gd php5-imap git-core sendmail php5-xcache unzip
 
Mcrypt is there along with sendmail / php5-imap needed to send / receive alerts and php5-xcache for the cacheing system.
Suggestions

May be worth mentioning to users that once they've installed php5-mcrypt (Ubuntu/Debian specific binary) that they need to restart apache in order for Ushahidi to recognise the added php library.
Great point - I've never had to do that as a separate step because I also modify /etc/apache2/sites-available/default to "AllowOverride All" on /var/www and ensure that mod_rewrite is enabled by running "a2enmod rewrite".  Once that's done I restart apache.

OpenStreet Maps API Key

This was a bit confusing for me, no direct relation to the Ushahidi code, but when click on the API key link it takes you to the sign up page for OSM which is ok. You sign up, confirm email address and you're good to go << I couldn't figure out where the API key is supposed to be obtained from, may be my impatience.
Not 100% sure what he means.  This may be because the "get an api key" is disabled if you choose OSM as your provider, but you do still need a google api key to do geolocation.  That could cause some confusion - in general I just go to the map page, add a google api key, then switch providers.  It'll be great once Openlayers is updated and we don't need to bother with google maps keys anymore.

Post Installation

Home page error

Error in loading GML file http://localhost/ushahidi/json/?z=13&c=0&s=1293829200&e=1296507599 << big arse message box appeared. haven't bothered to figure out why it's throwing this but I can dig around.

Going to guess that's due to the missing google maps api key.  There have been times where I've had to manually add the key into the database settings table.
 

I got error 404 when accessing any pages away from the home page.<< my solution was to go to /ushahidi/applications/config/config.php and specify the controller file:

$config['index_page'] = 'index.php';

I also edited the .htaccess file and set the RewriteEngine Off just as a precaution, mind you mod_rewrite is running on the server.

Most of the URLs worked fine with the exception of:


Themes- same as above ^^

Going to guess those are all .htaccess issues caused by an improper RewriteBase entry - should always be the path to your ushahidi directory relative to webroot.

Just for the sake of posterity, here's the current cheat-sheet I use when installing on ubuntu:

sudo apt-get install apache2 php5 mysql-server-5.1 php5-curl php5-mcrypt php5-mysql php5-gd php5-imap git-core sendmail php5-xcache unzip
# mysql password:  <whatever>

#Edit /etc/apache2/sites-available/default:  AllowOverride All on /var/www
a2enmod rewrite
/etc/init.d/apache2 restart

# move it to whatever directory you're using with mv, i.e. /var/www - using cp may cause hidden directories / files like .htaccess to not be copied over

mysql -u root -p
create database <ushahidi db>;
grant all privileges on <ushahidi db>.* to '<ushahidi username>'@'localhost' identified by '<password>';

sudo chown www-data application/config/config.php application/config application/cache application/logs media/uploads .htaccess

# go to the website and run through the install process.

george




--
John Wesonga