Installing OpenEMR 4.1.1 - getting errors

Hello,

I’ve done a fresh Ubuntu 16.04 cloud server and upgraded to 18.04

I’m trying to install OpenEMR 4.1.1 as I have another OpenEMR 4.1.1 installation from where I want to import my data and then upgrade to ver.5

I’ve installed Apache, mySql and PHP5.6

Am following instructions at https://www.open-emr.org/wiki/index.php/OpenEMR_4.1.1_Ubuntu-Debian_Package_Installation#Command_line_Ubuntu_Installation
and get errors, so I do the sudo apt-get install -f command and am being asked to remove OpenEMR

Would really appreciate some help on this, pls.

hi @fkasmani ,

What do you see in the following 2 logfiles:
/etc/openemr/<only file here, although I can’t recall name>
/var/log/openemr/<only file here, although I can’t recall name>

-brady

Thanks Brady,

etc/openemr/openemr.conf
#Optional settings#(currently empty, plan to use in subsequent versions of OpenEMR)#Installation settings# (DO NOT EDIT below!!!)
process=pendingplan=install

/var/log/openemr
Directory is empty

Interesting. Appears to be breaking then in the preinst script before even starting a log. 4.1.1 is from 2012 so am guessing not compatible with PHP 5.6 . What version of PHP is your working 4.1.1 currently running on?

getting late here so need to sign off for the night.

My thoughts here would be to start with Ubuntu 18.04, and install the php version that you are running your openemr 4.1.1 on. Then bring in your OpenEMR 4.1.1 into that and ensure it’s working. Then upgrade to the standard php (will be 7.2) and then use the following:
https://www.open-emr.org/wiki/index.php/Ubuntu_Package_Upgrade_to_5.0.1_with_PHP7

Actually, lets try this instead.

Start with Ubuntu 18.04 (with standard php (7.2) and mysql/mariadb installed)
Then bring in your 4.1.1 (into /var/www/openemr ) and import the database into mysql.(do not try to run it, since it will not work until it’s upgraded)
Then follow https://www.open-emr.org/wiki/index.php/Ubuntu_Package_Upgrade_to_5.0.1_with_PHP7

Thanks Brady.

Let me give this a try. I’ll setup a cloud server afresh.

Will post the outcome here.

I need clarification on this, pls.
Should I FTP my current OpenEMR 4.1.1 installation from my current cloud server into the new Ubuntu 18.04 server?

Any guide/tutorial you can share with me on this, pls.

hi @fkasmani ,

  1. copy over the entire openemr directory from your orginal server into the /var/www/openemr directory on the new 18.04 server

  2. On 18.04 server, install either mysql or mariadb (sudo apt-get install mariadb-server)

  3. Export the openemr database from your original server via mysqldump command: https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb

  4. Create empty openemr mysql database and openemr mysql user on your 18.04 server (use same credentials as in your sites/default/sqlconf.php file): https://www.a2hosting.com/kb/developer-corner/mysql/managing-mysql-databases-and-users-from-the-command-line

  5. Import the above exported database file into your new Ubuntu 18.04 mysql server: https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb

  6. Install openemr 5.0.1 via (this will upgrade the openemr to 5.0.1): https://www.open-emr.org/wiki/index.php/Ubuntu_Package_Upgrade_to_5.0.1_with_PHP7

Tried this but getting an error:Screenshot from 2019-03-06 10-32-48.webp (3.7 KB)