Table of Contents | ||
---|---|---|
|
Introduction
This is an abbreviated guide for Ubuntu-based developers who want to build Mifos from source. See Ubuntu WAR Install if you wish to install Mifos using a pre-built war file instead.
...
Oracle/Sun Java-6 is what we recommend for production, so it's the best bet for development, too. Execute the following:
No Format |
---|
sudo apt-add-repository ppa:flexiondotorg/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin sudo apt-get install sun-java6-jdk git-core mysql-server |
Notes:
...
- Mifos currently requires Jetty 7.3.x - download the relevant Jetty tarball from from http://downloadarchive.eclipse.org/jetty/7.3.1.v20110307/dist/ and unpack it.
- In the instructions that follow, we'll assume you unpacked Jetty to
$HOME/jetty7
. If you've put it somewhere else, adjust accordingly. - If using extended characters, be sure server configuration includes
URIEncoding="}}UTF-8 {{8"
in the Connector definition.
...
No Format ~$ mysql -u root -p mysql> CREATE DATABASE mifos; mysql> CREATE DATABASE mifostest; mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mifos | | mifostest | | mysql | +--------------------+
Grant permissions to user 'mifos' (doing these grants more than once has no effect). If you want to choose a different user name and password, adjust these instructions accordingly:
No Format mysql> GRANT ALL on mifos.* to 'mifos'@'localhost' identified by 'mifos'; mysql> GRANT ALL on mifostest.* to 'mifos'@'localhost' identified by 'mifos'; mysql> FLUSH PRIVILEGES;
Test the database connection as user 'mifos' with:
No Format mysql -u mifos -pmifos mifos
...
Step 5) Create production tables
After obtaining your personal copy of the source code and configuring your database you need to create production tables. In order to do that you need to execute following commands.
No Format |
---|
mysql -u mifos -pmifos mifos < $HOME/mifostrunk/db/src/main/resources/sql/base-schema.sql
mysql -u mifos -pmifos mifos < $HOME/mifostrunk/db/src/main/resources/sql/base-data.sql
mysql -u mifos -pmifos mifos < $HOME/mifostrunk/db/src/test/resources/sql/acceptance_test_dump.sql
mysql -u mifos -pmifos mifos < $HOME/mifostrunk/db/src/main/resources/sql/init_mifos_password.sql
|
OR
See "Initializing the Mifos Database" in $HOME/mifostrunk/INSTALL
, with one exception: the SQL files in your working copy are in /db/src/main/resources/sql/, not /db/sql/.
...
No Format |
---|
cd $HOME/mifostrunk/war
cp target/mifos_webapp.war $HOME/jetty7/webapps/mifos.war
|
...
If you've correctly set your environment variables for Maven (MAVEN_OPTS) and Java (JAVA_OPTIONS), as above, but you're still seeing memory issues when using Mifos, you may need to increase the size of your swap file / partition. See this page for PermGen Out of Memory errors specifically.