# What is proper path / sequence of upgrading from Ubuntu 14.04 LTS/ OEMR 4.2.1 to Ubuntu 16.04 LTS/ OEMR 4.2.2

**URL:** <https://community.open-emr.org/t/what-is-proper-path-sequence-of-upgrading-from-ubuntu-14-04-lts-oemr-4-2-1-to-ubuntu-16-04-lts-oemr-4-2-2/4540>\
**Category:** Day-to-Day Users\
**Created:** [May 30, 2016, 4:36am UTC](https://community.open-emr.org/t/what-is-proper-path-sequence-of-upgrading-from-ubuntu-14-04-lts-oemr-4-2-1-to-ubuntu-16-04-lts-oemr-4-2-2/4540 "2016-05-30T04:36:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 30, 2016, 4:36am UTC](https://community.open-emr.org/t/what-is-proper-path-sequence-of-upgrading-from-ubuntu-14-04-lts-oemr-4-2-1-to-ubuntu-16-04-lts-oemr-4-2-2/4540/1 "2016-05-30T04:36:48Z")

</div>

**[hamdpa](https://sourceforge.net/u/hamdpa/)** wrote on [Monday, May 30, 2016](https://sourceforge.net/p/openemr/discussion/202504/thread/27fa9086/#d2f6):

Hello to all!  
Trying to Upgrade from PHP 5 / Ubuntu 14.04 LTS server / OEMR 4.2.1 to PHP 7 / Ubuntu 16.04 LTS server / OEMR 4.2.2. First brought up Ubuntu 14.04 LTS to date. Then tried upgrading up to 16.04 LTS. Not working. Should I first upgrade with the Ubuntu openemr-php5\_4.2.2-1 package, then upgrade php 5 to 7 or upgrade from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS? Or is there a better sequence?

Thank you,

Henry

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 30, 2016, 9:25am UTC](https://community.open-emr.org/t/what-is-proper-path-sequence-of-upgrading-from-ubuntu-14-04-lts-oemr-4-2-1-to-ubuntu-16-04-lts-oemr-4-2-2/4540/2 "2016-05-30T09:25:03Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Monday, May 30, 2016](https://sourceforge.net/p/openemr/discussion/202504/thread/27fa9086/#3008):

Hi,

I’d recommend trying to upgrade to 4.2.2 in Ubuntu 14.04 via openemr-php5\_4.2.2-1 package. And then from there, upgrading to Ubuntu 16.04. After done upgrading to 16.04, would then ensure you have all the required OpenEMR dependencies (they are different in php5 and php7 and are why there are 2 different packages) by doing (I am assuming you are using mysql and not mariadb):

```auto
sudo apt-get install apache2 mysql-server libapache2-mod-php libdate-calc-perl libdbd-mysql-perl libdbi-perl libhtml-parser-perl libtiff-tools libwww-mechanize-perl libxml-parser-perl php php-mysql php-cli php-gd php-xsl php-curl php-mcrypt php-soap php-json php-gettext imagemagick php-mbstring php-zip

```

For details on dependency differences between php5 and php7 check out this wiki section:  
[http://www.open-emr.org/wiki/index.php/OpenEMR\_System\_Architecture#OpenEMR\_Dependencies](http://www.open-emr.org/wiki/index.php/OpenEMR_System_Architecture#OpenEMR_Dependencies)

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 31, 2016, 1:10am UTC](https://community.open-emr.org/t/what-is-proper-path-sequence-of-upgrading-from-ubuntu-14-04-lts-oemr-4-2-1-to-ubuntu-16-04-lts-oemr-4-2-2/4540/3 "2016-05-31T01:10:13Z")

</div>

**[hamdpa](https://sourceforge.net/u/hamdpa/)** wrote on [Tuesday, May 31, 2016](https://sourceforge.net/p/openemr/discussion/202504/thread/27fa9086/#50ff):

Hi Brady,  
Thank you for the help. I did the Ubuntu 14.04 openemr-php5\_4.2.2-1 package. Got some errors and did the “sudo apt-get install -f”.  
Got the congratulations screen below attachment.  
Then got the errors below attachement.  
The login page does not show any version #, thus not certain it is now running 4.2.2-1.  
Looking around within the program appears to be ok.  
Have not continued with Ubuntu 14 to 16 upgrade yet.

Please advise,

Henry

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 31, 2016, 1:11am UTC](https://community.open-emr.org/t/what-is-proper-path-sequence-of-upgrading-from-ubuntu-14-04-lts-oemr-4-2-1-to-ubuntu-16-04-lts-oemr-4-2-2/4540/4 "2016-05-31T01:11:05Z")

</div>

**[hamdpa](https://sourceforge.net/u/hamdpa/)** wrote on [Tuesday, May 31, 2016](https://sourceforge.net/p/openemr/discussion/202504/thread/27fa9086/#3f5a):

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 31, 2016, 7:02am UTC](https://community.open-emr.org/t/what-is-proper-path-sequence-of-upgrading-from-ubuntu-14-04-lts-oemr-4-2-1-to-ubuntu-16-04-lts-oemr-4-2-2/4540/5 "2016-05-31T07:02:05Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Tuesday, May 31, 2016](https://sourceforge.net/p/openemr/discussion/202504/thread/27fa9086/#bcb9):

Hi,

Need to login to OpenEMR to see the version now (click the About link at top right). I am assuming the error you got was before you did “sudo apt-get install -f”; correct?

-brady  
[OpenEMR](http://www.open-emr.org/)
