Difference between revisions of "Linux Upgrade 4.2.2 to 5.0.0"

From OpenEMR Project Wiki
 
Line 1: Line 1:
(if you are using the [[http://open-emr.org/wiki/index.php/OpenEMR_Multiple_Sites_Module multi site module]] then see those instructions)
(if you are using the [[http://open-emr.org/wiki/index.php/OpenEMR_Multiple_Sites_Module multi site module]] then see those instructions)
== Upgrade ==
=== Upgrade ===
# Move current (4.2.2) /openemr directory to a backup directory.
# Move current (4.2.2) /openemr directory to a backup directory
## sudo mv /var/www/html/openemr ~/Documents/openemr.old
# Unpackage 5.0.0 openemr into web directory and rename the directory to openemr
# Unpackage 5.0.0 openemr into web directory and rename the directory to openemr.
## sudo tar -pxvzC /var/www/html/  -f ~/Downloads/openemr-5.0.0.tar.gz
## sudo mv /var/www/html/openemr-5.0.0 /var/www/html/openemr
# Move following directories from old 4.2.2 version to /openemr directory:
# Move following directories from old 4.2.2 version to /openemr directory:
##openemr/sites/default/documents  
#:openemr/sites/default/documents  
###sudo mv ~/Documents/openemr.old/sites/default/documents /var/www/html/openemr/sites/default/.
#:openemr/sites/default/edi
##openemr/sites/default/edi
#:openemr/sites/default/era
###sudo mv ~/Documents/openemr.old/sites/default/edi /var/www/html/openemr/sites/default/.
#:openemr/sites/default/letter_templates
##openemr/sites/default/era
# Record the openemr/sites/default/sqlconf.php file variables from your old 4.2.2 version, and type these into the openemr/sites/default/sqlconf.php file in new openemr version
###sudo mv ~/Documents/openemr.old/sites/default/era /var/www/html/openemr/sites/default/.
##openemr/sites/default/letter_templates
###sudo mv ~/Documents/openemr.old/sites/default/letter_templates /var/www/html/openemr/sites/default/.
# Record the openemr/sites/default/sqlconf.php file variables from your old 4.2.2 version, and type these into the openemr/sites/default/sqlconf.php file in new openemr version.
##sudo joe ~/Documents/openemr.old/sites/default/sqlconf.php /var/www/html/openemr/sites/default/sqlconf.php
# In the openemr/sites/default/sqlconf.php file, set the $config variable (found near bottom of file within bunch of slashes) to 1 ($config = 1;).
# In the openemr/sites/default/sqlconf.php file, set the $config variable (found near bottom of file within bunch of slashes) to 1 ($config = 1;).
# Open openemr/sql_upgrade.php (http://localhost/openemr/sql_upgrade.php) in web browser, choose 4.2.2 (or if not running 4.2.2, choose the appropriate version that you are running) and click 'Upgrade Database'.
# Open openemr/sql_upgrade.php (http://localhost/openemr/sql_upgrade.php) in web browser, choose 4.2.2 and click 'Upgrade Database'
# Configure optional settings in openemr/sites/default/config.php files.
# Configure optional settings in openemr/sites/default/config.php files
# After installation is finished, then secure files (this should be done as root user)
    chown -R www-data: /var/www/html/openemr
    chmod 644 /var/www/html/openemr/library/sqlconf.php
    chmod 644 /var/www/html/openemr/interface/globals.php
    chmod 644 /var/www/html/openemr/gacl/gacl.ini.php
    chmod 644 /var/www/html/openemr/gacl/gacl.class.php
    chmod 600 /var/www/html/openemr/acl_setup.php
    chmod 600 /var/www/html/openemr/acl_upgrade.php
    chmod 600 /var/www/html/openemr/sl_convert.php
    chmod 600 /var/www/html/openemr/setup.php
    chmod 600 /var/www/html/openemr/sql_upgrade.php
    chmod 600 /var/www/html/openemr/gacl/setup.php


== Download and install most recent patch ==
 
=== Download and install most recent patch ===
:After finishing above upgrade, recommending getting the most recent patch for version 5.0.0. Instruction to do this can be found on the [[OpenEMR_Patches|OpenEMR Patches]] page.
:After finishing above upgrade, recommending getting the most recent patch for version 5.0.0. Instruction to do this can be found on the [[OpenEMR_Patches|OpenEMR Patches]] page.
<br>
<br>


== Meaningful Use 2 Specific Instructions ==
=== Meaningful Use 2 Specific Instructions ===
*[[OpenEMR 5.0.0 MU2 Install Instructions]]
*[[OpenEMR 5.0.0 MU2 Install Instructions]]
<br>
<br>


== Using OpenEMR ==
=== Using OpenEMR ===
:See the [[OpenEMR_5.0.0_Users_Guide|OpenEMR 5.0.0 User Guide]]
:See the [[OpenEMR_5.0.0_Users_Guide|OpenEMR 5.0.0 User Guide]]
<br>
<br>


== Securing OpenEMR ==
=== Securing OpenEMR ===
:See the [[Securing OpenEMR|Securing OpenEMR Guide]]
:See the [[Securing OpenEMR|Securing OpenEMR Guide]]
<br>
<br>
 
===Calendar Glitch===
==Calendar Glitch==
If your calendar had not been properly set up and this message appears after the upgrade, "This appointment slot is already used. Use it anyway?"; see  [https://sourceforge.net/p/openemr/discussion/202505/thread/8935a604/ this forum discussion]for the solution.
If your calendar had not been properly set up and this message appears after the upgrade, "This appointment slot is already used. Use it anyway?"; see  [https://sourceforge.net/p/openemr/discussion/202505/thread/8935a604/ this forum discussion]for the solution.
<br>
<br>
<br>
<br>
==Support:==
Support:<br>
http://sourceforge.net/projects/openemr/forums<br>
http://sourceforge.net/projects/openemr/forums<br>
<br>
<br>


[[Category:Upgrade]][[Category:Linux Package]]
[[Category:Upgrade]][[Category:Linux Package]]

Latest revision as of 22:18, 4 April 2018

(if you are using the [multi site module] then see those instructions)

Upgrade

  1. Move current (4.2.2) /openemr directory to a backup directory
  2. Unpackage 5.0.0 openemr into web directory and rename the directory to openemr
  3. Move following directories from old 4.2.2 version to /openemr directory:
    openemr/sites/default/documents
    openemr/sites/default/edi
    openemr/sites/default/era
    openemr/sites/default/letter_templates
  4. Record the openemr/sites/default/sqlconf.php file variables from your old 4.2.2 version, and type these into the openemr/sites/default/sqlconf.php file in new openemr version
  5. In the openemr/sites/default/sqlconf.php file, set the $config variable (found near bottom of file within bunch of slashes) to 1 ($config = 1;).
  6. Open openemr/sql_upgrade.php (http://localhost/openemr/sql_upgrade.php) in web browser, choose 4.2.2 and click 'Upgrade Database'
  7. Configure optional settings in openemr/sites/default/config.php files


Download and install most recent patch

After finishing above upgrade, recommending getting the most recent patch for version 5.0.0. Instruction to do this can be found on the OpenEMR Patches page.


Meaningful Use 2 Specific Instructions


Using OpenEMR

See the OpenEMR 5.0.0 User Guide


Securing OpenEMR

See the Securing OpenEMR Guide


Calendar Glitch

If your calendar had not been properly set up and this message appears after the upgrade, "This appointment slot is already used. Use it anyway?"; see this forum discussionfor the solution.

Support:
http://sourceforge.net/projects/openemr/forums