# Update 5.0.1 (7) Ubuntu to 6.0.0

**URL:** <https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769>\
**Category:** Management and Administration\
**Tags:** question\
**Created:** [June 19, 2021, 11:47pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769 "2021-06-19T23:47:28Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![cornutaurus](https://community.open-emr.org/user_avatar/community.open-emr.org/cornutaurus/32/11917_2.png) [@cornutaurus](https://community.open-emr.org/u/cornutaurus)\
**Post date:** [June 25, 2021, 6:06pm UTC](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769/9 "2021-06-25T18:06:41Z")

</div>

Hello @stephenwaite I got it to work with using

> sudo chown -R www-data:www-data /var/www/openemr

and

> sudo chmod 666 /var/www/openemr/sites/default/sqlconf.php

after upgrade to 5.0.2

I’m using the link you provide and this post by @ncavalier as the source [Upgrade Ubuntu to Linux](https://community.open-emr.org/t/xampp-version-for-emr-5-0-2-windows-10/13664/91)

However, I get this

![tables_error](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/e/e/eef0ddcf525280aec153048c61c3bc5deac4295d.png)

The error comes up when close a tab, go back to the original tab and click sort patient. I haven’t seen anything else that could cause the same issue.

Apache Error Log  
[Fri Jun 25 13:05:21.298108 2021] [php7:notice] [pid 10004] [client 127.0.0.1:43828] OpenEMR CSRF token authentication error, referer: [http://localhost/openemr/interface/main/finder/dynamic\_finder.php](http://localhost/openemr/interface/main/finder/dynamic_finder.php)

---

_[View the full topic](https://community.open-emr.org/t/update-5-0-1-7-ubuntu-to-6-0-0/16769)._
