# 5.0.0 Patch issue

**URL:** <https://community.open-emr.org/t/5-0-0-patch-issue/8662>\
**Category:** Management and Administration\
**Created:** [June 21, 2017, 5:38pm UTC](https://community.open-emr.org/t/5-0-0-patch-issue/8662 "2017-06-21T17:38:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertovasquez](https://community.open-emr.org/user_avatar/community.open-emr.org/robertovasquez/32/10867_2.png) [@robertovasquez](https://community.open-emr.org/u/robertovasquez)\
**Post date:** [June 21, 2017, 5:38pm UTC](https://community.open-emr.org/t/5-0-0-patch-issue/8662/1 "2017-06-21T17:38:06Z")

</div>

I put the /var/www/5-0-0-Patch-3.zip ( this is where openemr lives) in a ubuntu 16.04 box and run localhost/openemr/sql\_patch.php from my browser. The UI did not go more that  
Updating version indicators…  
Database Patch 0 finished.

The version.php file read:  
v\_major = ‘5’;  
v\_minor = ‘0’;  
v\_patch = ‘0’;  
v\_tag = ‘’;  
v\_real\_patch = ‘0’;  
v\_database = 206;  
v\_acl = 3;  
v\_offsite\_portal = ‘1.47’;  
v\_js\_includes = 19

version Table = v\_major 5, v\_minor 0, v\_patch 0, v\_realpatch 0, v\_database 206, v\_acl 3

I believe that the patch is was not applied.

Some Thoughts will help !

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [June 22, 2017, 12:52am UTC](https://community.open-emr.org/t/5-0-0-patch-issue/8662/2 "2017-06-22T00:52:12Z")

</div>

Hi @robertovasquez ,

Ensure you follow the instructions here:  
[http://www.open-emr.org/wiki/index.php/OpenEMR\_Patches#Linux](http://www.open-emr.org/wiki/index.php/OpenEMR_Patches#Linux)

and ensure use sudo on the unzip command  
`sudo unzip 5-0-0-Patch-3.zip`

-brady

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [June 22, 2017, 2:04am UTC](https://community.open-emr.org/t/5-0-0-patch-issue/8662/3 "2017-06-22T02:04:01Z")

</div>

if you download it from your browser then  
`sudo unzip ~/Downloads/5-0-0-Patch-3.zip -d /var/www/openemr`

should put the new files in the sql\_patch.php directory

from the unzip man page

> [@](#):
>
> [-d exdir]  
> An optional directory to which to extract files. By default,  
> all files and subdirectories are recreated in the current direc‐  
> tory; the -d option allows extraction in an arbitrary directory  
> (always assuming one has permission to write to the directory).  
> This option need not appear at the end of the command line; it  
> is also accepted before the zipfile specification (with the nor‐  
> mal options), immediately after the zipfile specification, or  
> between the file(s) and the -x option. The option and directory  
> may be concatenated without any white space between them, but  
> note that this may cause normal shell behavior to be suppressed.  
> In particular, `-d ~'' (tilde) is expanded by Unix C shells into the name of the user's home directory, but `-d~‘’ is  
> treated as a literal subdirectory ``~‘’ of the current direc‐  
> tory.

---

<div class="post-metadata">

**Author:** ![robertovasquez](https://community.open-emr.org/user_avatar/community.open-emr.org/robertovasquez/32/10867_2.png) [@robertovasquez](https://community.open-emr.org/u/robertovasquez)\
**Post date:** [June 22, 2017, 4:50am UTC](https://community.open-emr.org/t/5-0-0-patch-issue/8662/4 "2017-06-22T04:50:17Z")

</div>

Thanks Stephen, Brady  
I was so efficient that I put the 5-0-0-Patch-3.zip outside openemr 😳. The patch was pushed into openemr now.
