gutiersa wrote on Wednesday, December 07, 2011:
Yes, I was trying to setup a new emr with a site name, and then move the other office’s info into sites/other-office-emr,
then populate the new database with the backup of the other-office-emr database.
Since I have 3 separate installations, I figured upgrades would be easier. Specially since i have several files that I customized.
However as soon as I finished runing setup.php and the new sites/other-office-emr, had been created my already default practice stopped responding. Issues with “no site indicated” or something, and then just hung upon loging off, or trying to log back in
by the way, the sites/other-office-emr folder ended up inheriting all the default site’s documents.
I ended up having to start from scratch with a brand new openemr4.1.0_4 installation,
creating my initial(default) site with its original name of openemr, instead of using default at the setup.php screen, that way the subsequent sites would have fresh documents folder.
I made the appropriate file changes as per instructions, and then uploaded the database backup.
It was pretty tough because my original installation has been upgraded with new releases. Upgrades and new installs have differences. A lot of things don’t work but I have been fixing stuff thru the day. mostly with the database.
I should have dropped the complete new empty database, then ran my prev. openemr.sql with creating the old database with my data.
By the way. to do this, whichever sited is getting migrated, the version of openemr must be up to date. otherwise uploading prev data won’t work, and replacing database with old data will cause conflicts in the program. Also I would not know how to run sql_upgrade.php, etc, etc, while indicating site name.
I tried that just now, but it did not give me the option of which site to update, I’m not even gonna try sql_upgrades.php (or sql_patches, or sql_upgrades for that matter).
I have learned my lesson.
Sandra