upgrade to freemed 0.9 from 0.8.5 on ubuntu

80 views
Skip to first unread message

ALLAN

unread,
Jul 21, 2012, 9:05:07 AM7/21/12
to freemed...@googlegroups.com
Can i get instructions on how to upgrade from freemed 0.8.5 to 0.9 on ubuntu 11.10

Jeff

unread,
Jul 21, 2012, 4:24:30 PM7/21/12
to freemed...@googlegroups.com
On Sat, Jul 21, 2012 at 9:05 AM, ALLAN <alo...@gmail.com> wrote:
> Can i get instructions on how to upgrade from freemed 0.8.5 to 0.9 on ubuntu
> 11.10

Sure. First, back up your database, using mysqldump. Something like:

mysqldump -uroot --opt freemed | gzip -c > freemed-backup.sql.gz

Then, install a copy of FreeMED 0.9.x, but stop before you would run
install.php. Instead, run upgrade.php, in much the same way. (You're
making a backup copy of the original data in case anything goes
wrong.)

To see what it's actually doing, check out the SQL it's running here:

https://github.com/freemed/freemed/blob/master/scripts/upgrade.php

--
Thanks,
Jeff
(je...@freemedsoftware.org)
FreeMED Software Foundation, Inc
http://freemedsoftware.org/

ALLAN

unread,
Jul 22, 2012, 5:42:57 AM7/22/12
to freemed...@googlegroups.com
Thanks for your reply but can i get step by step installation instructions like the one given for debian

volkerbradley

unread,
Jul 23, 2012, 10:07:57 AM7/23/12
to freemed...@googlegroups.com
I don't have Ubuntu 11.10 and so I can't give you complete update instructions but try this:
cd /usr/share
ls al | grep freemed
If you see lrwxrwxrwx   1 root     root           13 Sep 23  2006 freemed -> freemed-0.8.x
Then the freemed directory is linked to the freemed-0.8.x directory
Remove this link with rm -fr freemed
If you see drwxr-xr-x  13 root     root         4096 Jan 25 15:12 freemed, then I would do:
mv freemed freemed-0.8.5
Then go to https://github.com/freemed/freemed/wiki/Installation and follow the installation instruction for Debian.
The installation instructions would be largely the same as for Debian. The only difference would be that a few dependencies would have slightly different names.
Between the names of dependencies for v0.8.5 on Ubuntu 11.10 and the Debian dependencies, you should be able to figure out the correct names.
Then continue with the Debian installation instructions for FreeMED v.0.9.0.
When you get to:
sudo -s
sudo apt-get install openjdk-6-jdk maven2
cd /usr/share/freemed/
./scripts/configure-settings.php
(When you run this script it will ask you for your FreeMED Installation name.  The name can be anything
that you wish to display.  The name can be more than one word and there can be empty spaces between the
words.
You will also be asked for the mysql host name.  Typically this is 127.0.0.1)
./scripts/install.php
mkdir -p data/cache && chown www-data data/cache -Rf
cd ui/gwt && make

Change the one instruction from
./scripts/install.php to:
./scripts/upgrade.php

Let us know if you have further questions. 

Jeff

unread,
Jul 23, 2012, 11:29:27 AM7/23/12
to freemed...@googlegroups.com, FreeMED Development List
I'm not sure whether it would make sense to either:

a) Amend the installation wiki page with instructions on upgrades from
the 0.8.x series. This would require that the user upgrade to the
latest version of 0.8.x, as the upgrade sql is keyed towards the
newest versions of the database structures.

b) Create a separate upgrade page. This would allow more space to
focus on upgrade issues, etc, but could potentially involve some
duplication of steps, etc.

I'm open to suggestions regarding the documentation.

Also, if anyone out there is interested in working on documenting this
in our new centralized documentation home on github, please let me
know your github username so that I can add you to the "freemed"
organization there. Instructions for editing the wiki "offline" (you
can edit it "online" through the web interface) using a git tree are
available here: https://github.com/freemed/freemed/wiki/_access

Information about the freemed github "organization" is available here:
https://github.com/freemed
Reply all
Reply to author
Forward
0 new messages