Hi Laurence,
Few months ago I killed a bit of time trying to get freemed 9.x and remitt 5.x installed and running.
If I remember correctly the development box didn't have remitt in it installed. There was only freemed there. May be the situation got changed since. In any case below i will post steps I used to install freemed and remitt. Let me know if you find these instructions useful and /or if you find errors.
If you think remitt is running you should be able to see if you point browser to
http://localhost:8080/remitt/index.jspThese do not include eclipse installation. I was just interested to test and evaluate freemed 9.x and remitt for use as a billing software. As OS I used ubuntu 10.4 running in VMWare
1. FreeMED 9.x Installation and ConfigurationOn Ubuntu 10.4 running on VMWare increase memory to 1G
#Update ubuntu
sudo apt-get update
# Install prerequisites, when prompted for mysql root user password, enter [MySqlRootPswd]
sudo apt-get install eclipse openjdk-6-jdk subversion mysql-{client,server}-5.1 php5-{mysql,cli,cgi,gd,curl} gs dcmtk djvulibre-bin libapache2-mod-php5 apache2 netpbm graphicsmagick-imagemagick-compat php5-xcache maven2 libmysql-java
# check out freemed from trunk
sudo svn co
http://svn.freemedsoftware.org/freemed/trunk /usr/share/freemed
#create freemed database
mysqladmin --user=root -p create freemed
password:[MySqlRootPswd]
# log into database and create freemed application user (see settings.php for userid/password [freemed]/[freemed] )
user@ubuntu:~$ mysql -u root -p
Enter password: [MySqlRootPswd]
mysql> grant all privileges on *.* to 'freemed'@'localhost' identified by 'freemed' with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql>exit;
#configure apache to read and process the freemed directory
#This is done by editing the apache file /etc/apache2/apache2.conf
sudo gedit /etc/apache2/apache2.conf
#Then add the following at the end of the apache2.conf file to tell apache to load index.php files, to associate .php with php:
DirectoryIndex index.php
AddType application/x-httpd-php .php
Alias /freemed /usr/share/freemed
<Directory "/usr/share/freemed">
Options Indexes Includes ExecCGI MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
# Setup phpmyadmin location with proper permissions, etc
# only internal ip addresses will access phpmyadmin
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory "/usr/share/phpmyadmin">
Order deny,allow
Deny from all
Allow from
192.168.0.0/255.255.0.0 ::1/128
</Directory>
#Restart apache
sudo /etc/init.d/apache2 restart
#create and edit settings.php
cd /usr/share/freemed/lib/
sudo cp settings.php.tpl settings.php
sudo gedit settings.php
define ('INSTALLATION', "Development"); // installation name
define ('DB_HOST', "localhost"); // database (SQL) host location
define ('DB_NAME', "freemed"); // database name
define ('DB_USER', "freemed"); // SQL server username
define ('DB_PASSWORD', "freemed"); // SQL server password
define ('PATID_PREFIX', "P"); // used to generate internal practice ID
define ('UI', "gwt"); // set default template
define ('HOST', "localhost"); // host name for this system
define ('BASE_URL', '/freemed'); // offset (i.e.
http://here/package)
define ('SESSION_PROTECTION', true); // strong session protection?
define ('RECORD_LOCK_TIMEOUT', 180); // record lock timeout in seconds
define ('DEFAULT_LANGUAGE', "en_US"); // default language
define ('INIT_ADDR',"127.0.0.1"); // this is the only IP address that can run the init wizard...
// Archive settings
define ('FSF_USERNAME', "none");
define ('FSF_PASSWORD', "none");
#Now you are ready to build the GWT interface for freemed:
cd /usr/share/freemed/ui/gwt
sudo make
# run this script otherwise procrec and payrec tables are not created
cd /usr/share/freemed
sudo ./data/source/cpt/download-and-prepare.sh
#execute install script:
#Answer yes to 2 first questions
#Enter user id / password when prompted
# This will be your FreeMED Administrator (not previously specified MySQL root user and not freemed application user found in the settings)
cd /usr/share/freemed
./scripts/install.php
#execute module indexing script
cd /usr/share/freemed
./scripts/cron/module.php
#point firefox to
http://localhost/freemed/index.php# log with FreeMED Administrator credentials set during install.php script execution
2. Remitt 5.x Installation and Configuration#On Ubuntu 10.4 running on VMWare increase memory to 1G
#Install REMITT after FreeMED 9.x has been installed
#note: mysql password for root user was set as part of freeemed install [freemed]
# Install required packages:
sudo apt-get install tomcat6 tomcat6-docs tomcat6-admin tomcat6-user
# Checkout remitt project from SVN :
sudo svn co
http://svn.freemedsoftware.org/remitt/trunk /usr/share/remitt
# Install dependencies:
cd /usr/share/remitt/
sudo sh install-deps.sh
# Create remitt database in MySQL
cd /usr/share/remitt/sql
sudo sh import-all.sh
[sudo] password for user: [password]
- Creating MySQL account for REMITT user (please enter password
for root user when prompted, otherwise hit "enter"):
Enter password: [freemed] // this is obviously the same root user used for previous freemed install
- Importing ddl.sql :
user@ubuntu:~/remitt/sql$ cd ~
>
user@ubuntu:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 29250
Server version: 5.1.41-3ubuntu12.7 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> grant all privileges on *.* to 'remitt'@'localhost' identified by 'remitt' with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql>exit;
# Compile project (create .war file). Execute build command
cd /usr/share/remitt
sudo mvn clean install
# Modify tomcat user file
sudo gedit /etc/tomcat6/tomcat-users.xml
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="mike" password="tomcat" roles="manager,admin"/>
</tomcat-users>
# restart tomcat
sudo /etc/init.d/tomcat6 restart
# Point firefox to
http://localhost:8080/# Select link to Start tomcat manager
# Login with mike/tomcat (see above edits to tomcat-users.xml file)
# Deploy remitt by browsing to the remitt.war file and hit deploy
# this action copies remitt.war to /var/lib/tomcat6/webapps/remitt.war
# Point firefox to
http://localhost:8080/remitt/index.jsp
# You should see REMITT asking for user/password (enter “Administrator/password”)