Installing OpenEMR 4.1.1 - getting errors



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
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.

(Brady Miller) #2

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>



Thanks Brady,

#Optional settings#(currently empty, plan to use in subsequent versions of OpenEMR)#Installation settings# (DO NOT EDIT below!!!)

Directory is empty

(Brady Miller) #4

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?

(Brady Miller) #5

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:

(Brady Miller) #6

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


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.

(Brady Miller) #10

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:

  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):

  5. Import the above exported database file into your new Ubuntu 18.04 mysql server:

  6. Install openemr 5.0.1 via (this will upgrade the openemr to 5.0.1):


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