bradymiller wrote on Tuesday, August 04, 2009:
hey,
From reading this thread, I’m assuming the below:
php-gacl (not installed)
sql-ledger/freeb (installed)
Although you have sql-ledger on postgresql, there is a script to merge this into openemr. If you indeed don’t have php-gacl installed, then this will simplify upgrade.
I’d suggest copying system to a test server, and attempting to upgrade it all at once. Will learn along the way, and will perhaps get “lucky”. You also need to have a user with ‘admin’ username.
Overall strategy:
I. Replace openemr web directory with new version
II. Upgrade openemr sql database
III. Configure openemr’s config files
IV. Install embedded php-gacl
V. Merge sql-ledger into openemr
VI. Finish up configuration via config files
Steps:
1) Move old openemr directory to a backup directory
2) Move new version into openemr directory
3) Copy openemr/library/sqlconf.php file variables from old version into the new version
4) Edit openemr/interface/globals.php (set $webserver_root and $web_root to be same as old version)
5) Open up your openemr/library/sqlconf.php file and note the variables for host, login, pass, and dbase variables (I’d suggest writing these on a piece of paper in the order listed). Then place these values (with above ordering) in the corresponding blank variables found in openemr/gacl/gacl.ini.php (host, user, password, name) and openemr/gacl/gacl.class.php (db_host, db_user, db_password, db_name). Don’t touch anything else in these files.
6) Open sql_upgrade.php in browser and follow instructions (this will upgrade your sql database), select 2.7.3.
7) Open in browser openemr/gacl/setup.php (installs new embedded php-gacl tables)
8) Open in browser openemr/acl_setup.php (configure php-gacl for openemr - this script also makes admin access for the ‘admin’ user. This is why you should make an admin user before the upgrade.)
9) Now for transitioning sql-ledger stuff into openemr:
#edit file /var/www/html/openemr/interface/globals.php:
mcedit /var/www/html/openemr/interface/globals.php
#edit the following bolded variables :
$sl_dbname = ‘openemr’; // (put value from your previous version)
$sl_dbuser = ‘sql-ledger’; // (put value from your previous version)
$sl_dbpass = ‘sql-ledger-password’; // (put value from your previous version)
TEXT EDITOR SAVE AND EXIT
Open in browser openemr/sl_convert.php (should merge stuff from sql-ledger into openemr)
10) Configure optional settings in interface/globals.php and includes/config.php files
Again, definitely try it in a test server first.
-brady